File: test41.ci

package info (click to toggle)
clif 0.92-4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 3,580 kB
  • ctags: 2,814
  • sloc: ansic: 31,040; yacc: 4,961; lex: 659; makefile: 390; sh: 60
file content (32 lines) | stat: -rw-r--r-- 409 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
int a, b[10];
float c;
printf ("%s\n", "input a");
scanf ("%d", b[1]);
a = 4;
switch (b[1])
{
default:
  printf ("default\n");
case 1:
  printf ("1\n");
  break;
case 2|5:
  printf ("2|5\n");
  break;
case 3:
  printf ("3\n");
  switch (a)
    {
    case 3:
      printf ("ok\n");
      break;
    default:
      printf ("not ok\n");
    }
  printf ("no break\n");
case 4:
  printf ("4\n");
  break;
}

exit;