Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
gdc.test
/
runnable
/
test20401.d
blob: c3b60721469c32a106f412959a76394ff277239d [
file
] [
log
] [
blame
]
// https://issues.dlang.org/show_bug.cgi?id=20401
void
main
()
{
int
i
;
assert
(&
passthrough
(
i
)
==
&
i
);
}
ref
int
passthrough
(
return
ref
int
i
)
{
return
get
().
flag
?
i
:
i
;
}
S
get
()
{
return
S
();
}
struct
S
{
bool
flag
;
~
this
(){}
}