From: Alexandre Oliva Date: Fri, 9 Jan 2004 21:29:13 +0000 (+0000) Subject: * g++.dg/lookup/strong-using-1.C: New. X-Git-Tag: releases/gcc-3.4.0~1163 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bafb62a279780038d9a42d120496c7b0ab7b4734;p=thirdparty%2Fgcc.git * g++.dg/lookup/strong-using-1.C: New. From-SVN: r75598 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fa4e007f374c..a9276de93898 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2004-01-09 Alexandre Oliva + + * g++.dg/lookup/strong-using-1.C: New. + 2004-01-09 Joseph S. Myers 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 000000000000..3d63f25b8b2c --- /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 void swap(T, T); +} +namespace fool { + using namespace foo __attribute__((strong)); + template void swap(T); +} + +int main() { + // we used to fail to look up the associated namespace here + fool::swap(1, 1); +}