blob: a3280c2908ec045e4d5ad39306be2c927ebc1d89 [file] [log] [blame]
/* { dg-do run } */
/* { dg-options "-fsanitize=undefined -fsanitize-trap=undefined" } */
unsigned int __attribute__((noinline,noclone))
foo (unsigned int x)
{
return x <= __INT_MAX__ ? x : -x;
}
int
main ()
{
volatile unsigned int tem = foo (-__INT_MAX__ - 1);
return 0;
}