libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / loop-unswitch-15.c
blob87139bb333439208a870afc8c5bbbfbaacd4685b
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -funswitch-loops -fdump-tree-unswitch-optimized" } */
4 void bar();
5 void baz();
6 void foo (int a, int b, int n)
8 for (int i = 0; i < n; ++i)
9 if (a < b)
10 bar ();
11 else
12 baz ();
15 /* { dg-final { scan-tree-dump "unswitching loop . on .if. with condition:" "unswitch" } } */