Sign in
llvm
/
llvm-test-suite
/
8e6f3ef1b8f30cca66fd1a4e35d16bdfd0c622ba
/
.
/
SingleSource
/
Regression
/
C
/
gcc-c-torture
/
execute
/
pr22429.c
blob: aa55b6e88acc6fdbbf7520aaf39cbc402b9aa219 [
file
] [
log
] [
blame
]
extern
void
abort
(
void
);
#define
N
(
1
<<
(
sizeof
(
int
)
*
__CHAR_BIT__
-
2
))
int
f
(
int
n
)
{
if
(-
N
<=
n
&&
n
<=
N
-
1
)
return
1
;
return
0
;
}
int
main
()
{
if
(
f
(
N
))
abort
();
return
0
;
}