Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
concepts-explicit-spec2.C
blob: 99f83cba6cf630813ba340b56fad588631a1bc68 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++20 } }
template
<
typename
T
>
concept
C
=
__is_class
(
T
);
struct
X
{
};
template
<
C T
>
struct
S
;
template
<>
struct
S
<
X
>
{
void
f
()
{
}
};
int
main
()
{
S
<
X
>
x
;
x
.
f
();
}