Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.ns/using13.C

raw
1 // { dg-do run }
2 namespace A{
3 void foo(int){}
4 }
5 namespace B{
6 void foo(bool){}
7 }
8
9 void bar()
10 {
11 using B::foo;
12 using A::foo;
13 foo(true);
14 }
15
16 namespace Foo {
17 template<class N> void Hello(N) {}
18 }
19
20 int main() {
21 using Foo::Hello;
22 Hello(4);
23 bar();
24 }