Sign in
fuchsia
/
third_party
/
github.com
/
llvm
/
llvm-test-suite
/
f8cce5587c37960f53d26daff9cf39ef18330059
/
.
/
SingleSource
/
Regression
/
C
/
gcc-c-torture
/
execute
/
20020127-1.c
blob: 88078dc500d8c01ad49a27e968106ab821f5e987 [
file
] [
log
] [
blame
]
/* This used to fail on h8300. */
extern
void
abort
(
void
);
extern
void
exit
(
int
);
unsigned
long
foo
(
unsigned
long
n
)
{
return
(~
n
>>
3
)
&
1
;
}
int
main
()
{
if
(
foo
(
1
<<
3
)
!=
0
)
abort
();
if
(
foo
(
0
)
!=
1
)
abort
();
exit
(
0
);
}