Mercurial > projects > ldc
view test/nested10.d @ 237:a168a2c3ea48 trunk
[svn r253] Removed -inlineasm option. inline asm is now enabled by default unless the new -noasm option is passed.
Tried adding a stack trace print when compiler crashes, not sure it's working though.
Changed data layouts to match that of llvm-gcc.
Fixed casting function pointers.
Added support checks in AsmStatement.
author | lindquist |
---|---|
date | Sun, 08 Jun 2008 19:09:24 +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); }