blob: 481c375f5f92dfc14d3cfba05a27a631de1eb74b [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-phiopt2" } */
int f(int num)
{
if (num < 3) __builtin_unreachable();
return num != 3 ? num : 4;
}
/* In phiopt2 with the range information, this should be turned into
a MAX_EXPR. */
/* { dg-final { scan-tree-dump-times "MAX_EXPR" 1 "phiopt2" } } */