repo.or.cz
/
sdcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
struct / union in initializer, RFE #901.
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
gcc-torture-execute-pr63659.c
blob
cc4268d5b4ff67ecd15bdf65c90fc36422d8c83d
1
/*
2
pr60822.c from the execute part of the gcc torture tests.
3
*/
4
5
#include <testfwk.h>
6
7
#ifdef __SDCC
8
#pragma std_c99
9
#endif
10
11
/* PR rtl-optimization/63659 */
12
13
int
a
,
b
,
c
, *
d
= &
b
,
g
,
h
,
i
;
14
unsigned char
e
;
15
char
f
;
16
17
void
18
testTortureExecute
(
void
)
19
{
20
while
(
a
)
21
{
22
for
(
a
=
0
;
a
;
a
++)
23
for
(;
c
;
c
++)
24
;
25
if
(
i
)
26
break
;
27
}
28
29
char
j
=
c
,
k
= -
1
,
l
;
30
l
=
g
=
j
>>
h
;
31
f
=
l
==
0
?
k
:
k
%
l
;
32
e
=
0
?
0
:
f
;
33
*
d
=
e
;
34
35
if
(
b
!=
255
)
36
ASSERT
(
0
);
37
38
return
;
39
}