Implement C _FloatN, _FloatNx types.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr56809.c
blob3f1f3115c3f601675a09ef0e59dac32f2cca9d18
1 /* PR target/56809 */
2 /* { dg-do compile } */
3 /* { dg-options "-Os" } */
5 int
6 foo (int mode, int i)
8 int x;
10 switch (mode)
12 case 0:
13 x = i + 1;
14 break;
15 case 1:
16 x = i / 2;
17 break;
18 case 2:
19 x = i * 3;
20 break;
21 case 3:
22 x = i + 3;
23 break;
24 case 4:
25 x = i + 5;
26 break;
27 default:
28 x = i - 1;
31 return x;