* g++.dg/lookup/strong-using-1.C: New.
authorAlexandre Oliva <aoliva@redhat.com>
Fri, 9 Jan 2004 21:29:13 +0000 (21:29 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Fri, 9 Jan 2004 21:29:13 +0000 (21:29 +0000)
From-SVN: r75598

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/strong-using-1.C [new file with mode: 0644]

index fa4e007f374c62888b590a5198763f53ad3a6620..a9276de938987e88bce45bace1b5e7b7a4eace6b 100644 (file)
@@ -1,3 +1,7 @@
+2004-01-09  Alexandre Oliva  <aoliva@redhat.com>
+
+       * g++.dg/lookup/strong-using-1.C: New.
+
 2004-01-09  Joseph S. Myers  <jsm@polyomino.org.uk>
 
        PR c/11234
diff --git a/gcc/testsuite/g++.dg/lookup/strong-using-1.C b/gcc/testsuite/g++.dg/lookup/strong-using-1.C
new file mode 100644 (file)
index 0000000..3d63f25
--- /dev/null
@@ -0,0 +1,16 @@
+// PR c++/13594 (secondary)
+
+// { dg-do compile }
+
+namespace foo {
+  template <class T> void swap(T, T);
+}
+namespace fool {
+  using namespace foo __attribute__((strong));
+  template <class T> void swap(T);
+}
+
+int main() {
+  // we used to fail to look up the associated namespace here
+  fool::swap(1, 1);
+}