Sign in
gnu
/
gcc
/
a25982ada523689c8745d7fb4b1b93c8f5dab2e7
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
concepts-memtmpl1.C
blob: 7ddfe62590cf0fb5846b23e3fa7a5d6a66e8ae3e [
file
] [
log
] [
blame
]
// { dg-do compile { target c++20 } }
template
<
class
T
>
struct
A
{
template
<
class
U
>
requires
(
sizeof
(
T
)
==
1
)
static
void
f
(
U
);
template
<
class
U
>
requires
(
sizeof
(
T
)
==
2
)
static
void
f
(
U
);
void
g
()
{
f
(
42
);
}
};