Mercurial > projects > ldc
view tangotests/asm2.d @ 309:d59c363fccad trunk
[svn r330] Implemented synchronized statements.
Changed the tryfinally handlers to a more generalized EnclosingHandler.
Changed ClassInfoS to be mutable so they can be used as locks.
Added new BB after throw ala return/break etc.
author | lindquist |
---|---|
date | Sat, 28 Jun 2008 11:37:53 +0200 |
parents | 74701ba40398 |
children |
line wrap: on
line source
module tangotests.asm2; extern(C) int printf(char*, ...); int main() { int i = 40; int j = 2; asm { mov EAX, i; mov EBX, j; add EAX, EBX; mov i, EAX; } printf("42 = %d\n", i); assert(i == 42); return 0; }