Mercurial > projects > ldc
view test/nested11.d @ 263:2be09ee06bc7 trunk
[svn r284] Fixed some problems with cases, code is not as pretty, but it doesn't crash llvm!
author | lindquist |
---|---|
date | Sat, 14 Jun 2008 06:13:35 +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); }