view tangotests/fail/p.d @ 285:297690b5d4a5 trunk

[svn r306] Fixed: it's now possible to compile and link llvmdc with MinGW32 and msys on Win32 :D I tried it myself ;) Building the runtime still needs some work, but it's a step in the right direction.
author lindquist
date Sat, 21 Jun 2008 03:14:49 +0200
parents 68a7dd38c03c
children
line wrap: on
line source

extern(C) int printf(char*, ...);

int main(char[][] args)
{
    printf("getint\n");
    int i = getint();
    printf("assert true\n");
    assert(i == 1234);
    printf("assert false\n");
    assert(i != 1234);
    printf("return\n");
    return 0;
}

int getint()
{
    return 1234;
}