[msan][NFCI] Add tests for Arm NEON saturating extract narrow (#125331)
[llvm-project.git] / clang-tools-extra / clangd / test / infinite-instantiation.test
bloba9c787c77027c7e06c607a00862410c07193359d
1 // RUN: rm -rf %t.dir && mkdir -p %t.dir
2 // RUN: echo '[{"directory": "%/t.dir", "command": "clang -ftemplate-depth=100 -x c++ %/s", "file": "%/s"}]' > %t.dir/compile_commands.json
3 // RUN: not clangd --compile-commands-dir=%t.dir -check=%s 2>&1 | FileCheck -strict-whitespace %s
5 // CHECK: [template_recursion_depth_exceeded]
7 template <typename... T>
8 constexpr int f(T... args) {
9   return f(0, args...);
12 int main() {
13   auto i = f();