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
2018-04-09 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr80632.c
blob
0d3c7b3c025ad9108509e8d7e1c312ceed253a76
1
/* PR tree-optimization/80632 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2" } */
4
5
extern
int
bar
(
void
);
6
extern
void
baz
(
void
);
7
int
a
;
8
9
int
10
foo
(
void
)
11
{
12
int
c
=
8
;
13
if
(
bar
())
14
{
15
baz
();
16
switch
(
a
)
17
{
18
case
0
:
19
c
=
1
;
20
break
;
21
case
1
:
22
c
=
0
;
23
break
;
24
case
2
:
25
c
=
0
;
26
break
;
27
case
3
:
28
c
=
0
;
29
break
;
30
default
:
31
c
=
1
;
32
}
33
}
34
return
c
;
35
}