annotate tests/mini/bug27.d @ 341:1bb99290e03a trunk

[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
author lindquist
date Sun, 13 Jul 2008 02:51:19 +0200
parents test/bug27.d@0c77619e803b
children
rev   line source
lindquist@52 1 module bug27;
lindquist@52 2
lindquist@52 3 int func(int a, int b)
lindquist@52 4 {
lindquist@52 5 if (a == b)
lindquist@52 6 return 0;
lindquist@52 7 else if (a < b)
lindquist@52 8 return -1;
lindquist@52 9 else
lindquist@52 10 return 1;
lindquist@52 11 }
lindquist@52 12
lindquist@52 13 void main()
lindquist@52 14 {
lindquist@52 15 int i = func(3,4);
lindquist@52 16 assert(i == -1);
lindquist@52 17 }