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
/
pr106892.c
blob
73a66a037b7a57b3a07c411a18d386e617ddd933
1
/* { dg-do run } */
2
3
int
a
,
b
,
c
,
d
,
e
;
4
int
f
[
8
];
5
static int
g
() {
6
while
(
a
)
7
a
>>=
4
;
8
return
0
;
9
}
10
static int
h
(
int
i
) {
11
if
(
i
>=
'0'
)
12
return
i
-
'0'
;
13
//__builtin_unreachable ();
14
}
15
void
__attribute__
((
noipa
))
j
(
int
i
) {
16
for
(
b
=
2
;
g
() <=
7
;
b
++)
17
if
(
i
) {
18
for
(;
e
<=
7
;
e
++)
19
for
(
c
=
1
;
c
<=
7
;
c
++) {
20
d
=
h
(
b
+
'0'
);
21
f
[-
d
+
4
] ^=
3
;
22
}
23
return
;
24
}
25
}
26
int
main
() {
27
j
(
1
);
28
if
(
f
[
2
] !=
0
)
29
__builtin_abort
();
30
}