☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
concepts-uneval1.C
☽
☼
gcc/testsuite/g++.dg/cpp2a/concepts-uneval1.C
code
plain
raw
1
// PR c++/99961
2
// { dg-do compile { target c++20 } }
3
4
struct A { static const int x = 42; bool y; };
5
6
void f(auto a) requires (a.x == 42) { }
7
template void f(A);
8
9
template <bool V> concept C = V || A::y;
10
static_assert(C<true>);