diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2004-01-09 21:29:13 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2004-01-09 21:29:13 +0000 |
commit | bafb62a279780038d9a42d120496c7b0ab7b4734 (patch) | |
tree | cb13c9874c3c47378bf6d1b02b90649ee7b20bf1 /gcc | |
parent | b0fd7d27430f0f37393f2cc5b105f401601e0d2a (diff) | |
download | gcc-bafb62a279780038d9a42d120496c7b0ab7b4734.zip gcc-bafb62a279780038d9a42d120496c7b0ab7b4734.tar.gz gcc-bafb62a279780038d9a42d120496c7b0ab7b4734.tar.bz2 |
* g++.dg/lookup/strong-using-1.C: New.
From-SVN: r75598
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/lookup/strong-using-1.C | 16 |
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); +} |