From c91aea5c664857859918005399447bbfbab16add Mon Sep 17 00:00:00 2001 From: Tomas Lindquist Olsen Date: Sat, 7 Jun 2008 19:20:15 +0200 Subject: [PATCH] [svn r244] added another asm test. --- tangotests/asm3.d | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tangotests/asm3.d diff --git a/tangotests/asm3.d b/tangotests/asm3.d new file mode 100644 index 00000000..61ee17f5 --- /dev/null +++ b/tangotests/asm3.d @@ -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; + } +}