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-pr68321.c
blob
eb76d5d03f9733eab690366b99c78dba79436851
1
/*
2
pr68321.c from the execute part of the gcc torture tests.
3
*/
4
5
#include <testfwk.h>
6
7
#ifdef __SDCC
8
#pragma disable_warning 84
9
#endif
10
11
/* PR rtl-optimization/68321 */
12
13
int
e
=
1
,
u
=
5
,
t2
,
t5
,
i
,
k
;
14
int
a
[
1
],
b
,
m
;
15
char
n
,
t
;
16
17
int
18
fn1
(
int
p1
)
19
{
20
int
g
[
1
];
21
for
(;;)
22
{
23
if
(
p1
/
3
)
24
for
(;
t5
;)
25
u
||
n
;
26
t2
=
p1
&
4
;
27
if
(
b
+
1
)
28
return
0
;
29
u
=
g
[
0
];
30
}
31
}
32
33
void
34
testTortureExecute
(
void
)
35
{
36
for
(;
e
>=
0
;
e
--)
37
{
38
char
c
;
39
if
(!
m
)
40
c
=
t
;
41
fn1
(
c
);
42
}
43
44
ASSERT
(
a
[
t2
] ==
0
);
45
46
return
;
47
}