repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2002-05-10 David S. Miller <davem@redhat.com>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20020127-1.c
blob
88078dc500d8c01ad49a27e968106ab821f5e987
1
/* This used to fail on h8300. */
2
3
extern
void
abort
(
void
);
4
extern
void
exit
(
int
);
5
6
unsigned long
7
foo
(
unsigned long
n
)
8
{
9
return
(~
n
>>
3
) &
1
;
10
}
11
12
int
13
main
()
14
{
15
if
(
foo
(
1
<<
3
) !=
0
)
16
abort
();
17
18
if
(
foo
(
0
) !=
1
)
19
abort
();
20
21
exit
(
0
);
22
}