view tangotests/asm3.d @ 297:5de180867c46 trunk

[svn r318] Moved the call to DtoBoolean before the not instruction. Fixes array_initialization_17_A.
author ChristianK
date Mon, 23 Jun 2008 19:19:37 +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;
    }
}