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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
unsorted
/
logic.c
blob
a9d6e9d0c2d47647334426698c5199c87f8f3fb8
1
logic
(
a
,
b
)
2
int
*
a
,
b
;
3
{
4
if
(*
a
&
123
)
5
b
=
1
;
6
if
(*
a
& ~
222
)
7
b
=
2
;
8
if
(
124
& *
a
)
9
b
=
3
;
10
if
(~
111
& *
a
)
11
b
=
4
;
12
13
if
(~*
a
&
23
)
14
b
=
1
;
15
if
(~*
a
& ~
22
)
16
b
=
2
;
17
if
(
24
& ~*
a
)
18
b
=
3
;
19
if
(~
11
& ~*
a
)
20
b
=
4
;
21
22
if
(~*
a
&
b
)
23
b
=
1
;
24
if
(~*
a
& ~
b
)
25
b
=
2
;
26
if
(*
a
& ~*
a
)
27
b
=
3
;
28
return
b
;
29
}
30
31
x
(
a
,
b
,
c
)
32
{
33
for
(
a
=
0
; --
a
>
0
;);
34
for
(
b
= -
1
; --
b
>
0
;);
35
for
(
c
= -
65536
; --
c
>
0
;);
36
return
a
+
b
+
c
;
37
}