Mercurial > projects > ldc
view test/nested11.d @ 171:95f07e3f8bb9 trunk
[svn r187] Fixed missing definitions of instances of imported struct template declarations.
author | lindquist |
---|---|
date | Tue, 06 May 2008 05:25:53 +0200 |
parents | 5825d48b27d1 |
children | 25fa34e899e9 |
line wrap: on
line source
module nested11; void main() { int i; void f() { i++; void g() { i++; void h() { printf("i = %d\n", i); } h(); } g(); } f(); assert(i == 2); void foo() { i = 42; } void bar() { foo(); } bar(); printf("i = %d\n", i); assert(i == 42); }