annotate tests/mini/switch2.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/switch2.d@d9d5d59873d8
children
rev   line source
lindquist@108 1 module switch2;
lindquist@270 2 extern(C) int printf(char*, ...);
lindquist@108 3
lindquist@108 4 void main()
lindquist@108 5 {
lindquist@108 6 int i = 2;
lindquist@108 7 switch(i)
lindquist@108 8 {
lindquist@108 9 case 0: assert(0);
lindquist@108 10 case 1,2: printf("hello world\n"); break;
lindquist@108 11 default: assert(0);
lindquist@108 12 }
lindquist@108 13 }