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