1 // Forward declare a template and a specialization;
2 template <typename T> class Temp;
3 template <> class Temp<int>;
4
5 // Force that debug informatin for the specialization is emitted.
6 // Clang and GCC will create debug information that lacks any description
7 // of the template argument 'int'.
8 Temp<int> *a;
9
10 // Define the template and create an implicit instantiation.
11 template <typename T> class Temp { int f; };
12 Temp<float> b;
13
main()14 int main() {
15 return 0; // break here
16 }
17