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

// { dg-options "" }
// { dg-do compile }

namespace bar {
  inline namespace foo {
    template <class T> void f(T, T);
  }
  template <class T> void f(T);
}

int main() {
  // Make sure both declarations are brought in.
  using bar::f;
  f(1);
  f(1, 1);
}