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
Reverting merge from trunk
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr46878-1.c
blob
f5b42de118be5c237fd0827470100a52b564d399
1
/* PR rtl-optimization/46878 */
2
/* Make sure this doesn't ICE. */
3
/* { dg-do compile } */
4
/* { dg-options "-O2" } */
5
6
struct
baz
7
{
8
int
*
newp
;
9
};
10
11
int
12
get_ice
(
int
*
op
,
struct
baz
*
ret
)
13
{
14
int
*
tmpp
;
15
int
c
;
16
c
= (
__foo
() !=
1
);
17
if
(
__bar
())
18
{
19
return
(
1
);
20
}
21
if
(
c
)
22
tmpp
=
op
;
23
if
(
tmpp
)
24
{
25
}
26
else if
(
c
)
27
{
28
ret
->
newp
=
tmpp
;
29
}
30
}