summaryrefslogtreecommitdiffstats
path: root/test/SemaTemplate/instantiate-using-decl.cpp
blob: a1cf355c890e153e0dff6574dcee9907b6834314 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// RUN: clang-cc -fsyntax-only -verify %s

namespace N { }

template<typename T>
struct A {
  void f();
};

template<typename T>
struct B : A<T> {
  using A<T>::f;
  
  void g() {
    using namespace N;
    f();
  }
};

template struct B<int>;
OpenPOWER on IntegriCloud