bolt/deps/llvm-18.1.8/clang-tools-extra/clangd/test/infinite-instantiation.test
2025-02-14 19:21:04 +01:00

13 lines
253 B
Text

// RUN: cp %s %t.cpp
// RUN: not clangd -check=%t.cpp 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();
}