view test/bug27.d @ 179:c853a8a04cdc trunk

[svn r195] fixed some tango bugs (tango ticket 1093).
author lindquist
date Wed, 07 May 2008 05:45:25 +0200
parents 0c77619e803b
children
line wrap: on
line source

module bug27;

int func(int a, int b)
{
    if (a == b)
        return 0;
    else if (a < b)
        return -1;
    else
        return 1;
}

void main()
{
    int i = func(3,4);
    assert(i == -1);
}