summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.ns/using12.C
blob: 343cfefc459630d8da2143a7c0e0c255ed1cded4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// { dg-do assemble  }
// Origin: Brendan Kehoe <brendan@cygnus.com>

namespace foo
{
  void x (bool);     // { dg-message "note" }
  void x (char);     // { dg-message "note" } candidates
  void x (int);      // { dg-message "note" } candidates
  void x (double);   // { dg-message "note" } candidates
}

namespace baz { void x (int); }  // { dg-message "note" }  candidates

void fn (int i)
{
  using foo::x;
  using baz::x;
  x(i); 	 // { dg-error "ambiguous" }
  // { dg-message "candidate" "candidate note" { target *-*-* } 18 }
}