[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaCXX / GH106182.cpp
blobf82064bff27e9e1376c371fb569ea54049fb8c6d
1 // RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s
2 // expected-no-diagnostics
4 template <class Fn> struct A {
5 constexpr A(Fn) {};
6 };
8 template <template <class> class S>
9 void create_unique()
10 requires (S{0}, true);
12 template <template <class> class S>
13 void create_unique()
14 requires (S{0}, true) {}
16 template void create_unique<A>();