repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
gcc.dg
/
pr17581-1.c
blob
b63517c8403ff60d6ef61775989ebe254f8622f4
1
/* PR rtl-optimization/17581 */
2
/* { dg-do run } */
3
/* { dg-options "-O2" } */
4
5
void
abort
(
void
);
6
7
int
foo
(
int
x
)
8
{
9
unsigned long long
tmp
=
0
;
10
11
switch
(
x
) {
12
case
21
:
13
tmp
|=
1
;
14
tmp
|=
2
;
15
tmp
|=
8
;
16
break
;
17
default
:
18
break
;
19
}
20
21
return
(
int
)
tmp
;
22
}
23
24
int
main
()
25
{
26
if
(
foo
(
21
) !=
11
)
27
abort
();
28
return
0
;
29
}
30