summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/misc14.C
blob: 09242a46fa547a0a5a244ac0362652fee5518f89 (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" }
    };

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

int main() {}