Disable gnat.dg/socket1.adb on hppa*-*-hpux*.
[official-gcc.git] / gcc / testsuite / c-c++-common / ubsan / pr56956.c
blob996e1dd8a795c89d417c38c73bf6857c3130bd28
1 /* { dg-do run } */
2 /* { dg-options "-fsanitize=undefined -fsanitize-undefined-trap-on-error" } */
4 unsigned int __attribute__((noinline,noclone))
5 foo (unsigned int x)
7 return x <= __INT_MAX__ ? x : -x;
10 int
11 main ()
13 volatile unsigned int tem = foo (-__INT_MAX__ - 1);
14 return 0;