libstdc++: Test 17_intro/names.cc with -D_FORTIFY_SOURCE=2 [PR116210]
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20011109-1.c
blob6a35c20a34fb0ab7bb5d486bcc7f40fb699b6b94
1 void abort (void);
2 void exit (int);
4 void fail1(void)
6 abort ();
8 void fail2(void)
10 abort ();
12 void fail3(void)
14 abort ();
16 void fail4(void)
18 abort ();
22 void foo(long x)
24 switch (x)
26 case -6:
27 fail1 (); break;
28 case 0:
29 fail2 (); break;
30 case 1: case 2:
31 break;
32 case 3: case 4: case 5:
33 fail3 ();
34 break;
35 default:
36 fail4 ();
37 break;
39 switch (x)
42 case -3:
43 fail1 (); break;
44 case 0: case 4:
45 fail2 (); break;
46 case 1: case 3:
47 break;
48 case 2: case 8:
49 abort ();
50 break;
51 default:
52 fail4 ();
53 break;
57 int main(void)
59 foo (1);
60 exit (0);