blob: 996e1dd8a795c89d417c38c73bf6857c3130bd28 [file] [log] [blame]
/* { dg-do run } */
/* { dg-options "-fsanitize=undefined -fsanitize-undefined-trap-on-error" } */
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;
}