view tests/code/if_3.d @ 12:6282db07115f

Added some ekstra tests, and allowed bool as a type
author Anders Halager <halager@gmail.com>
date Fri, 18 Apr 2008 13:58:27 +0200
parents
children
line wrap: on
line source

int main()
{
    int x = 0;
    int y = 1;
    if (x)
        return 1;
    else if (y == 2)
        return 1;
    return 0;
}