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
/
pr112430.c
blob
16c34fcbc69dc7732e2a098b6356b163545dd577
1
/* PR middle-end/112430 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -g" } */
4
5
int
a
,
b
,
c
,
d
,
e
;
6
unsigned int
f
;
7
8
static void
9
foo
(
unsigned int
x
)
10
{
11
unsigned int
g
=
x
<
c
;
12
int
h
=
f
<
b
;
13
x
+=
h
;
14
g
+=
x
<
h
;
15
f
=
x
;
16
x
=
g
;
17
g
=
f
+=
a
;
18
h
=
f
<
a
;
19
x
+=
h
;
20
c
+=
f
<
d
;
21
x
+=
c
;
22
g
+=
x
<
c
;
23
e
=
g
;
24
}
25
26
void
27
bar
(
unsigned int
x
)
28
{
29
foo
(
x
);
30
}