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-30 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
pr28410.c
blob
adc49b15c20bb1cef16ad36db75d6277da4fe1c1
1
/* { dg-do run } */
2
/* { dg-options "-O2" } */
3
4
extern
void
abort
(
void
);
5
struct
Bar
{
int
p
; };
6
struct
Foo
{
struct
Bar
*
p
; };
7
struct
Bar p0
= {
0
};
8
struct
Bar p1
= {
1
};
9
void
bar
(
struct
Foo
*
f
)
10
{
11
f
->
p
= &
p0
;
12
}
13
int
foo
(
struct
Foo
*
f
)
14
{
15
f
->
p
->
p
=
1
;
16
bar
(
f
);
17
return
f
->
p
->
p
;
18
}
19
int
main
()
20
{
21
struct
Foo f
;
22
f
.
p
= &
p1
;
23
if
(
foo
(&
f
) !=
0
)
24
abort
();
25
return
0
;
26
}