* g++.dg/lookup/scoped4.C: New test.
authorNeil Booth <neil@daikokuya.co.uk>
Wed, 1 Jan 2003 15:58:43 +0000 (15:58 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Wed, 1 Jan 2003 15:58:43 +0000 (15:58 +0000)
From-SVN: r60751

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/scoped4.C [new file with mode: 0644]

index 2a9f3f78c6fa98efd8c2776a38904d7454c66779..9f7a09d65fc13bfae75cd16e6318d99422a0e643 100644 (file)
@@ -1,6 +1,7 @@
 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
 
        * g++.dg/parse/parse5.C: New test.
+       * g++.dg/lookup/scoped4.C: New test.
 
 2003-01-01  Nathanael Nerode  <neroden@gcc.gnu.org>
 
diff --git a/gcc/testsuite/g++.dg/lookup/scoped4.C b/gcc/testsuite/g++.dg/lookup/scoped4.C
new file mode 100644 (file)
index 0000000..2d9d90a
--- /dev/null
@@ -0,0 +1,15 @@
+/* PR c++/754 */
+/* { dg-do compile } */
+
+namespace foo
+{
+    namespace bar
+    {
+        enum x {foo
+        };
+        enum {ubit0       = 0x0001};
+      // Used to get a parse error before "::" token.
+        int i=foo::bar::ubit0;
+    }
+}
+