[svn r244] added another asm test.

This commit is contained in:
Tomas Lindquist Olsen
2008-06-07 19:20:15 +02:00
parent 27634ea5b6
commit c91aea5c66

15
tangotests/asm3.d Normal file
View File

@@ -0,0 +1,15 @@
module tangotests.asm3;
extern(C) int printf(char*, ...);
void main()
{
char* fmt = "Hello D World\n";
printf(fmt);
asm
{
push fmt;
call printf;
pop EAX;
}
}