Files
ldc/test/bug27.d
Tomas Lindquist Olsen 5fee3fc8b7 [svn r56] Initial support for TypeInfo.
Enums not work.
Several other bugfixes.
2007-10-23 05:55:12 +02:00

18 lines
203 B
D

module bug27;
int func(int a, int b)
{
if (a == b)
return 0;
else if (a < b)
return -1;
else
return 1;
}
void main()
{
int i = func(3,4);
assert(i == -1);
}