summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.old-deja/g++.brendan/misc14.C
blob: d2e49095a3b64f3837e6c836ba14b48582bca4e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do assemble  }
// GROUPS passed miscellaneous-bugs
class X {
public:
    enum e {
	New // { dg-error "conflicts with previous" }
	,   // { dg-error "comma at end" "" { target c++98 } }
    };

    static int New(int); // { dg-error "declaration of" }
};

int main() {}
OpenPOWER on IntegriCloud