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