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
2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr36373-5.c
blob
0061ef418ee8c3889fbc4f5a08b57c5d8bc87965
1
/* { dg-do run } */
2
/* { dg-options "-fno-tree-sra" } */
3
4
extern
void
abort
(
void
);
5
struct
Foo
{
6
int
*
p
;
7
int
*
q
;
8
};
9
struct
Foo
__attribute__
((
noinline
))
10
bar
(
int
*
p
)
11
{
12
struct
Foo f
;
13
f
.
p
=
p
;
14
return
f
;
15
}
16
void
__attribute__
((
noinline
))
17
foo
(
struct
Foo f
)
18
{
19
*
f
.
p
=
0
;
20
}
21
int
main
()
22
{
23
int
a
,
b
;
24
a
=
0
;
25
b
=
1
;
26
struct
Foo f
;
27
f
=
bar
(&
b
);
28
f
.
q
= &
a
;
29
foo
(
f
);
30
if
(
b
!=
0
)
31
abort
();
32
return
0
;
33
}
34