bolt/deps/llvm-18.1.8/clang/test/SemaCXX/template-instantiation.cpp
2025-02-14 19:21:04 +01:00

15 lines
247 B
C++

// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -verify -fsyntax-only %s
// expected-no-diagnostics
namespace GH76521 {
template <typename T>
void foo() {
auto l = []() __attribute__((preserve_most)) {};
}
void bar() {
foo<int>();
}
}