aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/other/ellipsis1.C
blob: d2501ca85e2c9733d0c1532d35d85b85833ee83e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/26291
// { dg-do compile }

struct A
{
    A& operator= (A,...);  // { dg-error "variable number of arguments" }
    A operator+ (...);     // { dg-error "variable number of arguments" }
    operator int(...);     // { dg-error "variable number of arguments" }
    int operator() (...);
};

A operator- (A,...);       // { dg-error "variable number of arguments" }