New testcase.
authorMartin v. Löwis <loewis@gcc.gnu.org>
Sat, 11 Jul 1998 10:35:24 +0000 (10:35 +0000)
committerMartin v. Löwis <loewis@gcc.gnu.org>
Sat, 11 Jul 1998 10:35:24 +0000 (10:35 +0000)
From-SVN: r21059

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

diff --git a/gcc/testsuite/g++.old-deja/g++.ns/lookup4.C b/gcc/testsuite/g++.old-deja/g++.ns/lookup4.C
new file mode 100644 (file)
index 0000000..208a9d6
--- /dev/null
@@ -0,0 +1,23 @@
+//Build don't link:
+namespace X{
+  typedef int foo;
+  const int bar=2;
+  namespace Y{
+    void f(foo);
+    extern int g;
+    extern int g1;
+    struct h{
+      void i(foo);
+    };
+  }
+}
+
+void X::Y::f(foo)
+{
+}
+
+int X::Y::g = bar;
+int X::Y::g1(bar);
+
+void X::Y::h::i(foo)
+{}