OSDN Git Service

gcc/cp:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.brendan / misc14.C
1 // { dg-do assemble  }
2 // GROUPS passed miscellaneous-bugs
3 class X {
4 public:
5     enum e {
6         New // { dg-error "conflicts with previous" }
7         ,   // { dg-error "comma at end" }
8     };
9
10     static int New(int); // { dg-error "declaration of" }
11 };
12
13 int main() {}