Mercurial > projects > ldc
view test/nested10.d @ 224:116cc012409b trunk
[svn r240] do not crash on zero length constraints string
author | ChristianK |
---|---|
date | Fri, 06 Jun 2008 22:04:41 +0200 |
parents | 8096ba7082db |
children | 25fa34e899e9 |
line wrap: on
line source
module nested10; void main() { int j = 3; void F() { int i = j; printf("F: i = %d, j = %d\n", i, j); void G() { printf("G: i = %d, j = %d\n", i, j); j += i; } G(); } F(); printf("6 = %d\n", j); assert(j == 6); }