From: Richard Smith Date: Wed, 17 Aug 2016 21:42:10 +0000 (+0000) Subject: Add test missed from r278983. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b6dda6db3c14df673c6f2403af6369e0630fc1f;p=clang Add test missed from r278983. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@278984 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaTemplate/instantiation-depth-default.cpp b/test/SemaTemplate/instantiation-depth-default.cpp new file mode 100644 index 0000000000..b809e2a2cc --- /dev/null +++ b/test/SemaTemplate/instantiation-depth-default.cpp @@ -0,0 +1,9 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -ftemplate-backtrace-limit 2 %s + +template struct X : X {}; +// expected-error-re@3 {{recursive template instantiation exceeded maximum depth of 1024{{$}}}} +// expected-note@3 {{instantiation of template class}} +// expected-note@3 {{skipping 1023 contexts in backtrace}} +// expected-note@3 {{use -ftemplate-depth=N to increase recursive template instantiation depth}} + +X<0, int> x; // expected-note {{in instantiation of}}