OSDN Git Service

d2e49095a3b64f3837e6c836ba14b48582bca4e7
[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" "" { target c++98 } }
8     };
9
10     static int New(int); // { dg-error "declaration of" }
11 };
12
13 int main() {}