blob: 25c40fce4d1afafdadfd4d7f1ebb59162803ff51 [file] [log] [blame]
Douglas Gregorfcd5db32009-03-10 00:06:191// RUN: clang -fsyntax-only -ftemplate-depth=5 -verify %s
2
3template<typename T> struct X : X<T*> { }; // expected-error{{recursive template instantiation exceeded maximum depth of 5}} \
Douglas Gregor4ea568f2009-03-10 18:03:334// expected-note{{use -ftemplate-depth=N to increase recursive template instantiation depth}} \
5// expected-note 5 {{instantiation of template class}}
Douglas Gregorfcd5db32009-03-10 00:06:196
7void test() {
Douglas Gregor4ea568f2009-03-10 18:03:338 (void)sizeof(X<int>); // expected-note {{instantiation of template class}}
Douglas Gregorfcd5db32009-03-10 00:06:199}