mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 08:33:14 +01:00
[svn r244] added another asm test.
This commit is contained in:
15
tangotests/asm3.d
Normal file
15
tangotests/asm3.d
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user