Sign in
llvm
/
llvm-project
/
clang
/
refs/heads/main
/
.
/
test
/
SemaCXX
/
template-instantiation.cpp
blob: 8543af0d5428d033d7fa66e53dc2f7f739df985e [
file
] [
log
] [
blame
]
// 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>
();
}
}