Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
concepts
/
explicit-spec1.C
blob: d9b6b3d1741d864a9a86ba2f12f0a6cd3c91f647 [
file
] [
log
] [
blame
]
// PR c++/101098
// { dg-do compile { target concepts } }
template
<
typename
T
>
concept
C
=
__is_class
(
T
);
struct
Y
{
int
n
;
}
y
;
template
<
C T
>
void
g
(
T
)
{
}
int
called
;
template
<>
void
g
(
Y
)
{
called
=
3
;
}
int
main
()
{
g
(
y
);
}