aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.ns/overload3.C
blob: 945f94885117ccbce03a3845b26d794e1f2c847b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Build don't link:
// Declarations after the first one don't affect the set of used decls.

namespace A{
  void f();         // ERROR - .*
}

using A::f;

namespace A{
  void f(int);
}

using A::f;

void g()
{
  f(4);            // ERROR - too many arguments
}