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
/
pr77646.c
blob
1b1990037bf108877b20225fd0a6bc3edd07f2b5
1
/* { dg-do compile } */
2
3
struct
e
{
4
int
(*
f
)();
5
void
(*
g
)();
6
} *
c
;
7
int
a
;
8
void
*
h
();
9
typedef
struct
{
struct
e j
; }
k
;
10
int
l
() {
return
a
; }
11
const struct
e b
= {
l
};
12
void
m
()
13
{
14
k
*
d
=
h
();
15
d
->
j
=
b
;
16
c
= (
struct
e
*)
d
;
17
struct
e
*
i
=
c
;
18
if
(
i
->
f
(
c
))
19
while
(
i
->
f
(
c
))
20
i
->
g
();
21
}