Mercurial > projects > ldc
view tests/mini/naked_asm4.d @ 924:0ea8bdfe4405
Fixed problem accessing global variables from naked asm on osx.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Tue, 03 Feb 2009 18:42:25 +0100 |
parents | 545f54041d91 |
children | 97688ff7cf93 |
line wrap: on
line source
void foo() { version(X86) asm { naked; jmp pass; hlt; pass: ret; } else static assert(0, "todo"); } void main() { foo(); }