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-990804-1.c
blob
3b084898208b59fb2fa8281a948af6be1e00406d
1
/*
2
990804-1.c from the execute part of the gcc torture suite.
3
*/
4
5
#include <testfwk.h>
6
7
#ifdef __SDCC
8
#pragma std_c99
9
#endif
10
11
int
gfbyte
(
void
)
12
{
13
return
0
;
14
}
15
16
void
17
testTortureExecute
(
void
)
18
{
19
int
i
,
j
,
k
;
20
21
i
=
gfbyte
();
22
23
i
=
i
+
1
;
24
25
if
(
i
==
0
)
26
k
= -
0
;
27
else
28
k
=
i
+
0
;
29
30
if
(
i
!=
1
)
31
ASSERT
(
0
);
32
33
k
=
1
;
34
if
(
k
<=
i
)
35
do
36
j
=
gfbyte
() ;
37
while
(
k
++ <
i
) ;
38
39
return
;
40
}
41