blob: c45df562e41700f94e4732b9686a0c8ca6ff2a95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// RUN: clang-cc -fsyntax-only -verify %s
template<typename T> void f0(T); // expected-note{{here}}
template void f0(int); // expected-error{{explicit instantiation of undefined function template}}
template<typename T>
struct X0 {
void f1(); // expected-note{{here}}
static T value; // expected-note{{here}}
};
template void X0<int>::f1(); // expected-error{{explicit instantiation of undefined member function}}
template int X0<int>::value; // expected-error{{explicit instantiation of undefined static data member}}
|