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

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

int main() {}