[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaTemplate / GH75426.cpp
blobfaf70699f9c5f0fc00a2ec31b9b38e182e088f45
1 // RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s
2 // expected-no-diagnostics
4 template<typename T> concept C = true;
6 struct A {
7 template<C T> void f();
8 };
10 auto L = []<C T>{};
12 template<typename X>
13 class Friends {
14 template<C T> friend void A::f();
15 template<C T> friend void decltype(L)::operator()();