Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
concepts-requires17.C
blob: 6b665ac52ea3a6abe5ec5fb0bc3c4e76a0371905 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++20 } }
template
<
typename
T
>
concept
Type
=
true
;
template
<
typename
T
>
concept
C
=
requires
(
T a
)
{
{
a
.
f
()
}
->
Type
;
// OK
{
a
.
g
()
}
->
const
Type
*;
// { dg-error "not a plain type-constraint" }
};