Mercurial > projects > ldc
view tangotests/asm4.d @ 263:2be09ee06bc7 trunk
[svn r284] Fixed some problems with cases, code is not as pretty, but it doesn't crash llvm!
author | lindquist |
---|---|
date | Sat, 14 Jun 2008 06:13:35 +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; } }