mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 10:53:14 +01:00
13 lines
160 B
D
13 lines
160 B
D
module bug22;
|
|
extern(C) int printf(char*, ...);
|
|
|
|
void main()
|
|
{
|
|
int i;
|
|
delegate {
|
|
i = 42;
|
|
}();
|
|
printf("%d\n", i);
|
|
assert(i == 42);
|
|
}
|