Douglas Gregor | ee1828a | 2009-03-10 18:03:33 +0000 | [diff] [blame] | 1 | // RUN: clang -fsyntax-only -verify %s |
| 2 | template<typename T> struct A; // expected-note{{template is declared here}} |
| 3 | |
| 4 | template<typename T> struct B : A<T*> { }; // expected-error{{implicit instantiation of undefined template}} |
| 5 | |
| 6 | template<typename T> struct C : B<T> { } ; // expected-note{{instantiation of template class}} |
| 7 | |
| 8 | template<typename T> struct D : C<T> { }; // expected-note{{instantiation of template class}} |
| 9 | |
| 10 | template<typename T> struct E : D<T> { }; // expected-note{{instantiation of template class}} |
| 11 | |
| 12 | template<typename T> struct F : E<T(T)> { }; // expected-note{{instantiation of template class}} |
| 13 | |
| 14 | void f() { |
| 15 | (void)sizeof(F<int>); // expected-note{{instantiation of template class}} |
| 16 | } |