aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/enum2.C16
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 6deee84..885df45 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+1999-08-03 Nathan Sidwell <nathan@acm.org>
+
+ * g++.old-deja/g++.other/enum2.C: New test.
+
Mon Aug 2 13:35:12 1999 Richard Henderson <rth@cygnus.com>
Adapted from tests from Franz Sirl:
diff --git a/gcc/testsuite/g++.old-deja/g++.other/enum2.C b/gcc/testsuite/g++.old-deja/g++.other/enum2.C
new file mode 100644
index 0000000..c1a9ae2
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/enum2.C
@@ -0,0 +1,16 @@
+// Build don't link:
+
+// Copyright (C) 1999 Free Software Foundation, Inc.
+// Contributed by Nathan Sidwell 3 Jun 1999 <nathan@acm.org>
+
+// We'd like the enum location to be its open brace.
+
+enum thing
+{ // ERROR - previous def
+ val1
+};
+
+enum thing
+{ // ERROR - multiple def
+ val2
+};