~ubuntu-branches/ubuntu/oneiric/clif/oneiric

« back to all changes in this revision

Viewing changes to tests/test41.ci

  • Committer: Bazaar Package Importer
  • Author(s): Adrian Bunk
  • Date: 2002-01-25 14:05:49 UTC
  • Revision ID: james.westby@ubuntu.com-20020125140549-v5mmddxqlcrgzhd2
Tags: upstream-0.93
ImportĀ upstreamĀ versionĀ 0.93

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
int a, b[10];
 
2
float c;
 
3
printf ("%s\n", "input a");
 
4
scanf ("%d", b[1]);
 
5
a = 4;
 
6
switch (b[1])
 
7
{
 
8
default:
 
9
  printf ("default\n");
 
10
case 1:
 
11
  printf ("1\n");
 
12
  break;
 
13
case 2|5:
 
14
  printf ("2|5\n");
 
15
  break;
 
16
case 3:
 
17
  printf ("3\n");
 
18
  switch (a)
 
19
    {
 
20
    case 3:
 
21
      printf ("ok\n");
 
22
      break;
 
23
    default:
 
24
      printf ("not ok\n");
 
25
    }
 
26
  printf ("no break\n");
 
27
case 4:
 
28
  printf ("4\n");
 
29
  break;
 
30
}
 
31
 
 
32
exit;