[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Sema / PR84368.cpp
blob6551df29358920b2719e8843185e24add437d83e
1 // RUN: %clang_cc1 -std=c++20 -verify %s
2 // RUN: %clang_cc1 -std=c++23 -verify %s
3 // expected-no-diagnostics
5 template<class T> concept IsOk = requires() { typename T::Float; };
7 template<IsOk T> struct Thing;
9 template<IsOk T> struct Foobar {
10 template<int> struct Inner {
11 template<IsOk T2> friend struct Thing;
15 struct MyType { using Float=float; };
16 Foobar<MyType>::Inner<0> foobar;