diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tangotests/asm3.d	Sat Jun 07 19:20:15 2008 +0200
@@ -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;
+    }
+}