Mercurial > projects > ldc
view tangotests/asm2.d @ 240:0db62b770a49 trunk
[svn r257] Fixed: array .sort and .reverse runtime code was incorrect.
Fixed: most runtime calls did not get correct param attrs.
author | lindquist |
---|---|
date | Mon, 09 Jun 2008 00:01:10 +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; }