annotate tests/mini/bug27.d @ 1651:cb960b882ca3 tip

bindings were moved to dsource.org/projects/bindings/
author Moritz Warning <moritzwarning@web.de>
date Thu, 20 May 2010 20:05:03 +0200
parents 1bb99290e03a
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 }