view test/bug15.d @ 180:90522b72128a trunk

[svn r196] Added C++ version of the ray demo for comparing.
author lindquist
date Wed, 07 May 2008 18:46:56 +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));
}