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
/
tree-ssa
/
alias-access-path-13.c
blob
87a94f5bf315f78bbc4438e27674f33f940c92fd
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-fre1" } */
3
4
struct
inn
5
{
6
int
val
;
7
};
8
9
struct
biggerstruct
10
{
11
int
a
,
b
;
12
};
13
14
union
foo
15
{
16
struct
inn inn
;
17
struct
biggerstruct baz
;
18
} *
fooptr
;
19
20
struct
bar
21
{
22
union
foo foo
;
23
int
val2
;
24
} *
barptr
;
25
26
int
27
test
()
28
{
29
union
foo foo
;
30
foo
.
inn
.
val
=
0
;
31
barptr
->
val2
=
123
;
32
*
fooptr
=
foo
;
33
return
barptr
->
val2
;
34
}
35
36
/* { dg-final { scan-tree-dump-times "return 123" 1 "fre1"} } */