summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/misc14.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.brendan/misc14.C')
-rwxr-xr-xgcc/testsuite/g++.old-deja/g++.brendan/misc14.C12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/misc14.C b/gcc/testsuite/g++.old-deja/g++.brendan/misc14.C
new file mode 100755
index 0000000..024566f
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.brendan/misc14.C
@@ -0,0 +1,12 @@
+// Build don't link:
+// GROUPS passed miscellaneous-bugs
+class X {
+public:
+ enum e {
+ New,// ERROR - conflicts with other.*
+ }; // ERROR - comma
+
+ static int New(int);// ERROR - declaration.*
+};
+
+int main() {}