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
/
pr103860.c
blob
15eee558083dfe9b3f781be4592d5419f3f2f99f
1
/* PR rtl-optimization/103860 */
2
/* { dg-do run } */
3
/* { dg-options "-O3" } */
4
/* { dg-additional-options "-fPIC" { target fpic } } */
5
6
static int
d
, *
e
;
7
int
f
;
8
9
__attribute__
((
noinline
))
signed char
10
foo
(
signed char
b
,
signed char
c
)
11
{
12
return
b
+
c
;
13
}
14
15
int
16
main
()
17
{
18
signed char
l
;
19
for
(
l
= -
1
;
l
;
l
=
foo
(
l
,
1
))
20
{
21
while
(
d
<
0
)
22
;
23
if
(
d
>
0
)
24
{
25
f
=
0
;
26
*
e
=
0
;
27
}
28
}
29
d
=
0
;
30
return
0
;
31
}