Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test16540.d
blob: ed7e47b6870c4cf54e4985c6e7811cfc87f6c21e [
file
] [
log
] [
blame
]
/* REQUIRED_ARGS:
PERMUTE_ARGS:
*/
// https://issues.dlang.org/show_bug.cgi?id=16540
@safe
:
void
foo
(
scope lazy
int
*
f
)
@nogc
{
}
void
bar1
()
@nogc
{
foo
(
new
int
(
5
));
// It does not understand that the new here is wrapped in an invisible delegate
}