comparison tangotests/asm3.d @ 228:52d1e9d27dc6 trunk

[svn r244] added another asm test.
author lindquist
date Sat, 07 Jun 2008 19:20:15 +0200
parents
children
comparison
equal deleted inserted replaced
227:3092a38dddab 228:52d1e9d27dc6
1 module tangotests.asm3;
2
3 extern(C) int printf(char*, ...);
4
5 void main()
6 {
7 char* fmt = "Hello D World\n";
8 printf(fmt);
9 asm
10 {
11 push fmt;
12 call printf;
13 pop EAX;
14 }
15 }