Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
g++.dg
/
modules
/
tpl-friend-1_b.C
blob: e4c42d18663be5ed8aa678d9cd45b76e63531bbf [
file
] [
log
] [
blame
]
// { dg-additional-options -fmodules-ts }
module
foo
;
void
foo
(
int
x
,
void
*
p
)
{
auto
*
obj
=
reinterpret_cast
<
TPL
<int>
*>
(
p
);
obj
->
member
=
x
;
}
void
foo
(
float
x
,
void
*
p
)
{
auto
*
obj
=
reinterpret_cast
<
TPL
<float>
*>
(
p
);
obj
->
member
=
x
;
}