Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
;
}