Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / loop-unswitch-17.c
blob4b806c475b1c32c8ab1ff148dabc04f696941360
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -funswitch-loops -fdump-tree-unswitch-optimized -fno-tree-ch" } */
4 int foo (int a)
6 do
8 if (a == 1)
9 return 0;
10 switch (a)
12 case 1:
13 return 5;
14 case 2:
15 return 7;
16 case 3:
17 return 11;
18 default:;
21 while (1);
24 /* { dg-final { scan-tree-dump-times "unswitching loop" 3 "unswitch" } } */