comparison tests/mini/asm4.d @ 341:1bb99290e03a trunk

[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
author lindquist
date Sun, 13 Jul 2008 02:51:19 +0200
parents tangotests/asm4.d@79d8f6b3fbaf
children 4ac97ec7c18e
comparison
equal deleted inserted replaced
340:351c0077d0b3 341:1bb99290e03a
1 module tangotests.asm4;
2
3 extern(C) int printf(char*,...);
4
5 void main()
6 {
7 char* fmt = "yay!\n";
8 asm
9 {
10 jmp L2;
11 L1:;
12 jmp L3;
13 L2:;
14 jmp L1;
15 L3:;
16 push fmt;
17 call printf;
18 pop EAX;
19 }
20 }