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
/
pr83847.c
blob
e42541e1b57c9511bd902d8676772fd348f97579
1
/* { dg-do compile } */
2
/* { dg-additional-options "-march=bdver4" { target i?86-*-* x86_64-*-* } } */
3
4
typedef
struct
{
5
struct
{
6
int
a
;
7
int
b
;
8
}
c
;
9
} *
d
;
10
typedef
struct
{
11
unsigned
e
;
12
d f
[];
13
}
g
;
14
g h
;
15
d
*
k
;
16
int
i
(
int
j
) {
17
if
(
j
) {
18
*
k
= *
h
.
f
;
19
return
1
;
20
}
21
return
0
;
22
}
23
int
l
;
24
int
m
;
25
int
n
;
26
d o
;
27
void
p
() {
28
for
(;
i
(
l
);
l
++) {
29
n
+=
o
->
c
.
a
;
30
m
+=
o
->
c
.
b
;
31
}
32
}