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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr36373-6.c
blob
c55e3ff3fabc16c48beffdad763d8d787a8ae16f
1
/* { dg-do run } */
2
/* { dg-options "-fno-tree-sra" } */
3
4
extern
void
abort
(
void
);
5
struct
Foo
{
6
int
*
p
;
7
}
x
;
8
struct
Foo
__attribute__
((
noinline
))
9
bar
(
int
*
p
)
10
{
11
struct
Foo f
;
12
f
.
p
=
p
;
13
return
f
;
14
}
15
void
__attribute__
((
noinline
))
16
foo
()
17
{
18
*
x
.
p
=
0
;
19
}
20
int
main
()
21
{
22
int
b
;
23
b
=
1
;
24
struct
Foo g
=
bar
(&
b
);
25
x
=
g
;
26
foo
();
27
if
(
b
!=
0
)
28
abort
();
29
return
0
;
30
}