libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / minmax-22.c
blob481c375f5f92dfc14d3cfba05a27a631de1eb74b
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-phiopt2" } */
4 int f(int num)
6 if (num < 3) __builtin_unreachable();
7 return num != 3 ? num : 4;
10 /* In phiopt2 with the range information, this should be turned into
11 a MAX_EXPR. */
12 /* { dg-final { scan-tree-dump-times "MAX_EXPR" 1 "phiopt2" } } */