xref: /llvm-project/clang/test/SemaCXX/template-instantiation.cpp (revision 09de5e5c6d8c25fe76840c69056afca72275dd6b)
1 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -verify -fsyntax-only %s
2 // expected-no-diagnostics
3 
4 namespace GH76521 {
5 
6 template <typename T>
foo()7 void foo() {
8   auto l = []() __attribute__((preserve_most)) {};
9 }
10 
bar()11 void bar() {
12   foo<int>();
13 }
14 
15 }
16