diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.ns/using13.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.ns/using13.C | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.ns/using13.C b/gcc/testsuite/g++.old-deja/g++.ns/using13.C new file mode 100644 index 000000000..29867deaa --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.ns/using13.C @@ -0,0 +1,24 @@ +// { dg-do run } +namespace A{ + void foo(int){} +} +namespace B{ + void foo(bool){} +} + +void bar() +{ + using B::foo; + using A::foo; + foo(true); +} + +namespace Foo { + template<class N> void Hello(N) {} +} + +int main() { + using Foo::Hello; + Hello(4); + bar(); +} |