view test/bug15.d @ 281:f5f97ca47b33 trunk

[svn r302] Make HaltExps and assert(0) generate an assert message again instead of using llvm's trap intrinsic.
author ChristianK
date Fri, 20 Jun 2008 23:38:51 +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));
}