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