[clangd][NFC] Decrease template depth limit in RecursiveHierarchyUnbounded test

...to minimize the chance of stack overflow before reaching the limit.

llvm-svn: 365804
This commit is contained in:
Jan Korous 2019-07-11 18:21:21 +00:00
parent 83b380860d
commit a286aae4d8
1 changed files with 1 additions and 0 deletions

View File

@ -390,6 +390,7 @@ TEST(TypeHierarchy, RecursiveHierarchyUnbounded) {
)cpp"); )cpp");
TestTU TU = TestTU::withCode(Source.code()); TestTU TU = TestTU::withCode(Source.code());
TU.ExtraArgs.push_back("-ftemplate-depth=10");
auto AST = TU.build(); auto AST = TU.build();
// The compiler should produce a diagnostic for hitting the // The compiler should produce a diagnostic for hitting the