Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.old-deja / g++.ns / using12.C
blob343cfefc459630d8da2143a7c0e0c255ed1cded4
1 // { dg-do assemble  }
2 // Origin: Brendan Kehoe <brendan@cygnus.com>
4 namespace foo
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
12 namespace baz { void x (int); }  // { dg-message "note" }  candidates
14 void fn (int i)
16   using foo::x;
17   using baz::x;
18   x(i);          // { dg-error "ambiguous" }
19   // { dg-message "candidate" "candidate note" { target *-*-* } 18 }