[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaCXX / template-instantiation.cpp
blob8543af0d5428d033d7fa66e53dc2f7f739df985e
1 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -verify -fsyntax-only %s
2 // expected-no-diagnostics
4 namespace GH76521 {
6 template <typename T>
7 void foo() {
8 auto l = []() __attribute__((preserve_most)) {};
11 void bar() {
12 foo<int>();