gcc/tests/Regression/394271-gcc-optimization-error-for-neg-number-abs/abs.c

13 lines
141 B
C
Raw Normal View History

2022-07-29 14:27:49 +00:00
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
int i = 2;
if (-10 * abs (i - 1) == 10 * abs (i - 1))
return 1;
return 0;
}