Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
concepts-return-req3.C
blob: a546c6457be4f34a9ba6f4913029883625db2b68 [
file
] [
log
] [
blame
]
// PR c++/100946
// { dg-do compile { target c++20 } }
template
<
class
T
>
concept
C
=
__is_same
(
T
,
int
);
static_assert
(
requires
{
{
0
}
->
C
;
});
static_assert
(
requires
{
{
true
}
->
C
;
});
// { dg-error "failed" }