Mercurial > projects > ldc
view tangotests/asm2.d @ 288:ba4e4298009a trunk
[svn r309] Remove the large dstress test result files from svn repository.
author | ChristianK |
---|---|
date | Sat, 21 Jun 2008 14:06:00 +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; }