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
/
pr100512.c
blob
0c1fc63b99aff369ccf6f8fce432c421e6277402
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -Wno-pointer-to-int-cast" } */
3
4
#include <stdint.h>
5
int
a
;
6
void
b
() {
7
int16_t
*
c
;
8
uint16_t
d
=
2
;
9
if
(
0
==
d
) {
10
uint64_t
e
;
11
uint64_t
*
f
= &
e
;
12
for
(;;) {
13
if
(
e
+=
0
>=
0
)
14
for
(;;)
15
;
16
g
:
17
for
(;
a
;) {
18
int16_t
i
= (
int16_t
) &
d
;
19
*
c
=
i
&& *
f
;
20
}
21
}
22
}
23
goto
g
;
24
}
25