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
Corrected date in changelog
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr46875.c
blob
8b6d23680fa255ee6e0729e8e3b156540127d3e2
1
/* { dg-do compile { target powerpc*-*-* ia64-*-* i?86-*-* x86_64-*-* } } */
2
/* { dg-options "-Os -fselective-scheduling2" } */
3
4
long
5
foo
(
int
x
,
long
*
y
)
6
{
7
long
a
=
0
;
8
switch
(
x
)
9
{
10
case
0
:
11
a
= *
y
;
12
break
;
13
case
1
:
14
a
= *
y
;
15
break
;
16
case
2
:
17
a
= *
y
;
18
break
;
19
case
3
:
20
a
= *
y
;
21
break
;
22
case
4
:
23
a
= *
y
;
24
break
;
25
}
26
return
a
;
27
}