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
Daily bump.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
990827-1.c
blob
bd93843a6e1d7c96463715f0a405536620211e33
1
void
abort
(
void
);
2
void
exit
(
int
);
3
4
unsigned
test
(
unsigned
one
,
unsigned
bit
)
5
{
6
unsigned
val
=
bit
&
1
;
7
unsigned
zero
=
one
>>
1
;
8
9
val
++;
10
return
zero
+ (
val
>>
1
);
11
}
12
13
int
main
()
14
{
15
if
(
test
(
1
,
0
) !=
0
)
16
abort
();
17
if
(
test
(
1
,
1
) !=
1
)
18
abort
();
19
if
(
test
(
1
,
65535
) !=
1
)
20
abort
();
21
exit
(
0
);
22
23
return
0
;
24
}