mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 10:53:14 +01:00
15 lines
158 B
D
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);*/
|
|
}
|