New test case.
authorMartin v. Löwis <loewis@gcc.gnu.org>
Thu, 16 Jul 1998 01:07:25 +0000 (01:07 +0000)
committerMartin v. Löwis <loewis@gcc.gnu.org>
Thu, 16 Jul 1998 01:07:25 +0000 (01:07 +0000)
From-SVN: r21212

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

diff --git a/gcc/testsuite/g++.old-deja/g++.ns/lookup5.C b/gcc/testsuite/g++.old-deja/g++.ns/lookup5.C
new file mode 100644 (file)
index 0000000..cddf828
--- /dev/null
@@ -0,0 +1,23 @@
+// Build don't link: 
+namespace A{
+  void f();
+}
+
+namespace B{
+  using namespace A;
+  void f(int);
+}
+
+using namespace B;
+
+void g()
+{
+  ::f();               // ERROR - A::f is not found
+}
+
+using namespace A;
+
+void g1()
+{
+  ::f();               // ok, it is found now
+}