Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
div-by-zero-4.c
blob: ef431c93e4e2f4c842f7ca6e4a7e53d81573730a [
file
] [
log
] [
blame
]
/* { dg-do run } */
/* { dg-options "-fsanitize=signed-integer-overflow -fsanitize-undefined-trap-on-error -Wno-overflow" } */
#define
INT_MIN
(-
__INT_MAX__
-
1
)
int
main
(
void
)
{
/* This should not fail. */
return
(
unsigned
int
)
INT_MIN
/
-
1
;
}