aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/misc14.C
blob: c4229a130e99417bfb47c80f12686f428dadccb6 (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-message "previous" }
	,   // { dg-error "comma at end" "" { target { ! c++11 } } }
    };

    static int New(int); // { dg-error "conflicts with a previous" }
};

int main() {}