Files
ldc/test/condexp.d
2007-09-01 21:43:27 +02:00

15 lines
158 B
D

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