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
/
pr69666.c
blob
9be77ea1523bd570bbbdd40c576fadcf1bc67555
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -w" } */
3
4
int
a
,
c
,
d
;
5
float
b
;
6
void
*
memcpy
();
7
int
fun1
(
int
p1
,
unsigned char
*
p2
) {
8
p2
[
p1
] =
b
;
9
return
a
;
10
}
11
void
fun2
() {
12
unsigned char
e
[
16
];
13
fun1
(
16
,
e
);
14
d
=
e
[
d
];
15
memcpy
(&
c
,
e
,
sizeof
(
e
));
16
}