summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/using-10.C
blob: 1ca8a783206149359e721aff346a5d1a3e79d3f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// PR c++/13659

// { dg-do compile }

namespace foo1 {
  template <class T> void f(T);
}
namespace foo2 {
  template <class T> void f(T, T);
}
namespace foo {
  using namespace foo1;
  using namespace foo2;
}

// Make sure we bring in both declarations.
using foo::f;

int main() {
  f(1);
  f(1, 1);
}