Mercurial > projects > ldc
view tangotests/asm4.d @ 233:76ee1bbe487e trunk
[svn r249] Changed inline asm clobbers to a set instead of a list so we don't get duplicate clobbers.
author | lindquist |
---|---|
date | Sun, 08 Jun 2008 06:45:54 +0200 |
parents | 79d8f6b3fbaf |
children |
line wrap: on
line source
module tangotests.asm4; extern(C) int printf(char*,...); void main() { char* fmt = "yay!\n"; asm { jmp L2; L1:; jmp L3; L2:; jmp L1; L3:; push fmt; call printf; pop EAX; } }