Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
gdc.test
/
runnable
/
test809.d
blob: efe4a3704c5aaab8fcb1a6f7c0bb8454bc04b5b6 [
file
] [
log
] [
blame
]
// https://issues.dlang.org/show_bug.cgi?id=809
void
test
(
lazy
int
dg
)
{
int
delegate
()
dg_
=
&
dg
;
assert
(
dg_
()
==
7
);
assert
(
dg
==
dg_
());
}
void
main
()
{
int
a
=
7
;
test
(
a
);
}