aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/instantiate-function-2.cpp
blob: 51a60146d46aef0b4d7e69ebd32a01d7fb0c63dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: clang-cc -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);
}