diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/lookup/strong-using-3.C')
-rw-r--r-- | gcc/testsuite/g++.dg/lookup/strong-using-3.C | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/lookup/strong-using-3.C b/gcc/testsuite/g++.dg/lookup/strong-using-3.C new file mode 100644 index 000000000..7679c6f1d --- /dev/null +++ b/gcc/testsuite/g++.dg/lookup/strong-using-3.C @@ -0,0 +1,18 @@ +// PR c++/13659 + +// { dg-options "" } +// { dg-do compile } + +namespace bar { + inline namespace foo { + template <class T> void f(T, T); + } + template <class T> void f(T); +} + +int main() { + // Make sure both declarations are brought in. + using bar::f; + f(1); + f(1, 1); +} |