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
Fix handling of ICF_NOVOPS in ipa-modref
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
930603-3.c
blob
d0e5beed010ca71da849d644ee87adc2377d84bf
1
/* { dg-additional-options "-std=gnu89" } */
2
3
f
(
b
,
c
)
4
unsigned char
*
b
;
5
int
c
;
6
{
7
unsigned long
v
=
0
;
8
switch
(
c
)
9
{
10
case
'd'
:
11
v
= ((
unsigned long
)
b
[
0
] <<
8
) +
b
[
1
];
12
v
>>=
9
;
13
break
;
14
15
case
'k'
:
16
v
=
b
[
3
] >>
4
;
17
break
;
18
19
default
:
20
abort
();
21
}
22
23
return
v
;
24
}
25
main
()
26
{
27
char
buf
[
4
];
28
buf
[
0
] =
170
;
buf
[
1
] =
5
;
29
if
(
f
(
buf
,
'd'
) !=
85
)
30
abort
();
31
exit
(
0
);
32
}