diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/lookup/strong-using-1.C')
-rw-r--r-- | gcc/testsuite/g++.dg/lookup/strong-using-1.C | 16 |
1 files changed, 16 insertions, 0 deletions
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 000000000..aa0c5f9be --- /dev/null +++ b/gcc/testsuite/g++.dg/lookup/strong-using-1.C @@ -0,0 +1,16 @@ +// PR c++/13594 (secondary) + +// { dg-options "" } +// { dg-do compile } + +namespace fool { + inline namespace foo { + template <class T> void swap(T, T); + } + template <class T> void swap(T); +} + +int main() { + // we used to fail to look up the associated namespace here + fool::swap(1, 1); +} |