Handle peeling for alignment with masking
[official-gcc.git] / gcc / testsuite / gcc.dg / pr80632.c
blob0d3c7b3c025ad9108509e8d7e1c312ceed253a76
1 /* PR tree-optimization/80632 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
5 extern int bar (void);
6 extern void baz (void);
7 int a;
9 int
10 foo (void)
12 int c = 8;
13 if (bar ())
15 baz ();
16 switch (a)
18 case 0:
19 c = 1;
20 break;
21 case 1:
22 c = 0;
23 break;
24 case 2:
25 c = 0;
26 break;
27 case 3:
28 c = 0;
29 break;
30 default:
31 c = 1;
34 return c;