PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 920520-1.c
blob068a12e9249113e427078eaeeb5e9a6b3dfa5e48
1 foo(int *bar)
3 *bar = 8;
6 bugger()
8 int oldDepth, newDepth;
10 foo(&oldDepth);
12 switch (oldDepth)
14 case 8:
15 case 500:
16 newDepth = 8;
17 break;
19 case 5000:
20 newDepth = 500;
21 break;
23 default:
24 newDepth = 17;
25 break;
28 return newDepth - oldDepth;
31 main()
33 if (bugger() != 0)
34 abort ();
35 exit (0);