OSDN Git Service

* g++.old-deja/g++.other/enum2.C: New test.
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Aug 1999 14:25:10 +0000 (14:25 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Aug 1999 14:25:10 +0000 (14:25 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28472 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.other/enum2.C [new file with mode: 0644]

index 6deee84..885df45 100644 (file)
@@ -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 (file)
index 0000000..c1a9ae2
--- /dev/null
@@ -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
+};