Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
gcc.dg
/
ubsan
/
pr67662.c
blob: 26fd00fbbe95bb29ed4fb000ff127e67e19282bf [
file
] [
log
] [
blame
]
/* { dg-do run } */
/* { dg-options "-fsanitize=undefined" } */
extern
void
abort
(
void
);
int
main
(
void
)
{
int
halfmaxval
=
__INT_MAX__
/
2
+
1
;
int
maxval
=
halfmaxval
-
1
+
halfmaxval
;
if
(
maxval
!=
__INT_MAX__
)
abort
();
return
0
;
}