new
authorJason Merrill <jason@gcc.gnu.org>
Sun, 13 Dec 1998 18:56:43 +0000 (13:56 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Sun, 13 Dec 1998 18:56:43 +0000 (13:56 -0500)
From-SVN: r24302

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

diff --git a/gcc/testsuite/g++.old-deja/g++.other/lookup7.C b/gcc/testsuite/g++.old-deja/g++.other/lookup7.C
new file mode 100644 (file)
index 0000000..55726a5
--- /dev/null
@@ -0,0 +1,12 @@
+// Test for handling of type shadowing in function scope.
+
+int main()
+{
+  int A = 42;
+  struct A
+  {
+    enum { a };
+  };
+  A = A::a;
+  return A;
+}