c++: robustify testcase [PR109752]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / concepts-complete4.C
blob988b0ddcfdd9886e01f9a092c1e5a192ddb9cf9a
1 // PR c++/109752
2 // { dg-do compile { target c++20 } }
4 template<class T>
5 concept C = requires { sizeof(T); } && T::value; // { dg-error "changed from" }
7 struct A;
9 static_assert(!C<A>);
11 struct A { static constexpr bool value = false; };
13 static_assert(C<A>); // { dg-error "assert" }