view tangotests/asm3.d @ 312:553f844ae5b9 trunk

[svn r333] Fix inline asm bug with multiple branches to the same label.
author ChristianK
date Sun, 29 Jun 2008 22:07:15 +0200
parents 52d1e9d27dc6
children
line wrap: on
line source

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;
    }
}