Debian Codegraph @

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

raw
1 // { dg-do assemble }
2 // Origin: Brendan Kehoe <[email protected]>
3
4 namespace foo
5 {
6 void x (bool); // { dg-message "note" }
7 void x (char); // { dg-message "note" } candidates
8 void x (int); // { dg-message "note" } candidates
9 void x (double); // { dg-message "note" } candidates
10 }
11
12 namespace baz { void x (int); } // { dg-message "note" } candidates
13
14 void fn (int i)
15 {
16 using foo::x;
17 using baz::x;
18 x(i); // { dg-error "ambiguous" }
19 }