(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
loop-unswitch-15.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -funswitch-loops -fdump-tree-unswitch-optimized" } */
       3  
       4  void bar();
       5  void baz();
       6  void foo (int a, int b, int n)
       7  {
       8    for (int i = 0; i < n; ++i)
       9      if (a < b)
      10        bar ();
      11      else
      12        baz ();
      13  }
      14  
      15  /* { dg-final { scan-tree-dump "unswitching loop . on .if. with condition:" "unswitch" } } */