tests2: move into tests
[tinycc.git] / tests / tests2 / 47_switch_return.c
blob1ec7924c47ae34ae056b438e2a453087c4824801
1 #include <stdio.h>
3 void fred(int x)
5 switch (x)
7 case 1: printf("1\n"); return;
8 case 2: printf("2\n"); break;
9 case 3: printf("3\n"); return;
12 printf("out\n");
15 int main()
17 fred(1);
18 fred(2);
19 fred(3);
21 return 0;
24 /* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/