aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/concepts-uneval1.C
blob: 4c5f1b5c01919ad90030e48eacba9ee684e02020 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/99961
// { dg-do compile { target c++20 } }

struct A { static const int x = 42; bool y; };

void f(auto a) requires (a.x == 42) { }
template void f(A);

template <bool V> concept C = V || A::y;
static_assert(C<true>);