blob: 3b8acf20dd1a304102afd81186fdb74f3aee6070 [file] [log] [blame]
Douglas Gregor26dce442009-03-10 00:06:19 +00001// 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}} \
4// expected-note{{use -ftemplate-depth=N to increase recursive template instantiation depth}}
5
6void test() {
7 (void)sizeof(X<int>);
8}