[svn r237] some inline asm output now seems to work, see tangotests/asm2.d

This commit is contained in:
Tomas Lindquist Olsen
2008-06-06 20:51:43 +02:00
parent 346d04aa8a
commit b917fe2f00
3 changed files with 31 additions and 4 deletions

17
tangotests/asm2.d Normal file
View File

@@ -0,0 +1,17 @@
module tangotests.asm2;
extern(C) int printf(char*, ...);
int main()
{
int i = 40;
asm
{
mov EAX, i;
add EAX, 2;
mov i, EAX;
}
printf("42 = %d\n", i);
assert(i == 42);
return 0;
}