view test/bug15.d @ 240:0db62b770a49 trunk

[svn r257] Fixed: array .sort and .reverse runtime code was incorrect. Fixed: most runtime calls did not get correct param attrs.
author lindquist
date Mon, 09 Jun 2008 00:01:10 +0200
parents 8b0e809563df
children
line wrap: on
line source

module bug15;

bool bool1(bool b) {
    if (b) return true;
    else return false;
}

bool bool2(bool b) {
    if (b) {return true;}
    else {return false;}
}

void main()
{
    assert(bool1(true));
    assert(!bool2(false));
}