Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test22619.d
blob: fd5e894715a8cdf858f88a9e194eef4cd483db25 [
file
] [
log
] [
blame
]
// https://issues.dlang.org/show_bug.cgi?id=22619
struct
W1
{
int
x
;
this
(
ref
inout W1 rhs
)
inout
{
this
.
x
=
rhs
.
x
;
}
}
inout
(
W1
)
f
(
inout W1 x
)
{
return
x
;
}
void
g
(
W1 x
)
{
auto
r
=
f
(
x
);
}