| // RUN: rm -rf %t.dir && mkdir -p %t.dir | |
| // RUN: echo '[{"directory": "%/t.dir", "command": "clang -ftemplate-depth=100 -x c++ %/s", "file": "%/s"}]' > %t.dir/compile_commands.json | |
| // RUN: not clangd --compile-commands-dir=%t.dir -check=%s 2>&1 | FileCheck -strict-whitespace %s | |
| // CHECK: [template_recursion_depth_exceeded] | |
| template <typename... T> | |
| constexpr int f(T... args) { | |
| return f(0, args...); | |
| } | |
| int main() { | |
| auto i = f(); | |
| } |