re PR middle-end/81814 (Incorrect behaviour at -O0 (conditional operator))
PR middle-end/81814 * fold-const.c (operand_equal_for_comparison_p): Remove code that used to mimic what shorten_compare did. Change the return type to bool. (fold_cond_expr_with_comparison): Update call to operand_equal_for_comparison_p. (fold_ternary_loc): Likewise. * gcc.dg/torture/pr81814.c: New test. From-SVN: r251152
Showing
gcc/testsuite/gcc.dg/torture/pr81814.c
0 → 100644
Please
register
or
sign in
to comment