summaryrefslogtreecommitdiffstats
path: root/test/SemaTemplate/instantiate-function-2.cpp
blob: 6318facfc0ea8ea9348de61125bf74184e9a5434 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -fsyntax-only -verify %s
template <typename T> struct S {
  S() { }
  S(T t);
};

template struct S<int>;

void f() {
  S<int> s1;
  S<int> s2(10);
}
OpenPOWER on IntegriCloud