(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
loop-unswitch-17.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -funswitch-loops -fdump-tree-unswitch-optimized" } */
       3  
       4  int foo (int a)
       5  {
       6    do
       7      {
       8        if (a == 1)
       9          return 0;
      10        switch (a)
      11          {
      12          case 1:
      13            return 5;
      14          case 2:
      15            return 7;
      16          case 3:
      17            return 11;
      18          default:;
      19          }
      20      }
      21    while (1);
      22  }
      23  
      24  /* { dg-final { scan-tree-dump-times "unswitching loop" 3 "unswitch" } } */