view test/condexp.d @ 167:adca7f32fb6d trunk

[svn r183] Fixed broken identity expressions with two pointers of different types. Fixed broken pointer arithmetic for subtraction (tango.text.Util unittest now passes)
author lindquist
date Tue, 06 May 2008 01:23:02 +0200
parents c53b6e3fe49a
children
line wrap: on
line source

module condexp;

int f()
{
    return 42;
}

void main()
{
    int i = f() < 25 ? -1 : 1;
    /*int j = f() > 25 ? 1 : -1;
    assert(i);
    assert(!j);*/
}