aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/overload/using3.C
blob: 38344e48a9d25ad093f09ff54f842e769ea683a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do compile }

namespace a
{
  void f(int);
}

namespace b
{
  void f(int); // { dg-message "previous" }
  void g()
  {
    f (3);
  }
  using a::f; // { dg-error "conflicts" }
}