15 lines · plain
1// RUN: rm -rf %t.dir && mkdir -p %t.dir2// RUN: echo '[{"directory": "%/t.dir", "command": "clang -ftemplate-depth=100 -x c++ %/s", "file": "%/s"}]' > %t.dir/compile_commands.json3// RUN: not clangd --compile-commands-dir=%t.dir -check=%s 2>&1 | FileCheck -strict-whitespace %s4 5// CHECK: [template_recursion_depth_exceeded]6 7template <typename... T>8constexpr int f(T... args) {9 return f(0, args...);10}11 12int main() {13 auto i = f();14}15