Mercurial > projects > ldc
view test/nested7.d @ 287:00eb2c967c3a trunk
[svn r308] Really fixed multidimensional new expressions. the first length was bad in the resulting slice.
author | lindquist |
---|---|
date | Sat, 21 Jun 2008 05:03:42 +0200 |
parents | d9d5d59873d8 |
children |
line wrap: on
line source
module nested7; extern(C) int printf(char*, ...); void main() { int i; i = 52; printf("i = %d\n", i); void func() { i++; void func2() { i++; void func3() { i++; } func3(); } func2(); } func(); printf("i = %d\n", i); assert(i == 55); }