aboutsummaryrefslogtreecommitdiff
path: root/test/1.cff
blob: cdda6b9f086eba737ed20535a90f57e1c96cd781 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import "libc.hff";

extern fn main(argc int) int {
   switch argc - 1 {
   case 0, 1;
      printf("zero or one\n");
   case -1;
      printf("???\n");
   case 2;
      printf("two");
      printf("\n");
   case 7;
      //empty
   case else
      printf("its %d\n", argc);
   }
}