c++: P0847R7 (deducing this) - xobj lambdas. [PR102609]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / concepts-uneval1.C
blob4c5f1b5c01919ad90030e48eacba9ee684e02020
1 // PR c++/99961
2 // { dg-do compile { target c++20 } }
4 struct A { static const int x = 42; bool y; };
6 void f(auto a) requires (a.x == 42) { }
7 template void f(A);
9 template <bool V> concept C = V || A::y;
10 static_assert(C<true>);