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

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

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

template struct B<int>;
OpenPOWER on IntegriCloud