blob: c4229a130e99417bfb47c80f12686f428dadccb6 [file] [log] [blame]
// { dg-do assemble }
// GROUPS passed miscellaneous-bugs
class X {
public:
enum e {
New // { dg-message "previous" }
, // { dg-error "comma at end" "" { target { ! c++11 } } }
};
static int New(int); // { dg-error "conflicts with a previous" }
};
int main() {}