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 warning with -Wsign-compare -Wsystem-headers
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr52139.c
blob
b2a08a623ad543c308efba91186f81fad1d088d5
1
/* PR rtl-optimization/52139 */
2
/* { dg-do compile } */
3
/* { dg-options "-O -fno-tree-dominator-opts -fno-tree-fre" } */
4
/* { dg-additional-options "-fpic" { target fpic } } */
5
/* { dg-require-effective-target label_values } */
6
7
void
*
p
;
8
9
void
10
foo
(
int
a
)
11
{
12
switch
(
a
)
13
{
14
case
0
:
15
a0
:
16
case
1
:
17
a1
:
18
p
= &&
a1
;
19
case
2
:
20
a2
:
21
p
= &&
a2
;
22
case
3
:
23
a3
:
24
p
= &&
a3
;
25
case
4
:
26
a4
:
27
p
= &&
a4
;
28
case
5
:
29
a5
:
30
p
= &&
a5
;
31
case
6
:
32
a6
:
33
p
= &&
a6
;
34
case
7
:
35
a7
:
36
p
= &&
a7
;
37
case
8
:
38
a8
:
39
p
= &&
a8
;
40
case
9
:
41
a9
:
42
p
= &&
a9
;
43
case
10
:
44
a10
:
45
p
= &&
a10
;
46
default
:
47
p
= &&
a0
;
48
}
49
goto
*
p
;
50
}