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
/
pr102920.c
blob
aa27ac5f6ca9569494b596548eaee3740f9041c0
1
/* { dg-do run } */
2
/* { dg-additional-options "-funswitch-loops" } */
3
4
unsigned short
a
=
42
;
5
unsigned short
b
=
1
;
6
long int
c
=
1
;
7
unsigned char
var_120
;
8
unsigned char
var_123
;
9
10
void
__attribute__
((
noipa
))
test
(
unsigned short
a
,
unsigned short
b
,
long
c
)
11
{
12
for
(
char
i
=
0
;
i
< (
char
)
c
;
i
+=
5
)
13
if
(!
b
)
14
var_120
=
a
;
15
else
16
var_123
=
a
;
17
}
18
19
int
main
()
20
{
21
test
(
a
,
b
,
c
);
22
if
(
var_123
!=
42
)
23
__builtin_abort
();
24
return
0
;
25
}