forked from OSchip/llvm-project
9 lines
322 B
C++
9 lines
322 B
C++
// RUN: clang -fsyntax-only -ftemplate-depth=5 -verify %s
|
|
|
|
template<typename T> struct X : X<T*> { }; // expected-error{{recursive template instantiation exceeded maximum depth of 5}} \
|
|
// expected-note{{use -ftemplate-depth=N to increase recursive template instantiation depth}}
|
|
|
|
void test() {
|
|
(void)sizeof(X<int>);
|
|
}
|