aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/g++.dg/lookup/strong-using-1.C16
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index fa4e007..a9276de 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
index 0000000..3d63f25
--- /dev/null
+++ b/gcc/testsuite/g++.dg/lookup/strong-using-1.C
@@ -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);
+}