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-20020819-1.c
blob
d85ae5c79b4fc59c13c5eee6dea1dd3e1d92bf87
1
/*
2
20020819-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
12
foo
(
void
)
13
{
14
return
0
;
15
}
16
17
void
18
testTortureExecute
(
void
)
19
{
20
int
i
,
j
,
k
,
ccp_bad
=
0
;
21
22
for
(
i
=
0
;
i
<
10
;
i
++)
23
{
24
for
(
j
=
0
;
j
<
10
;
j
++)
25
if
(
foo
())
26
ccp_bad
=
1
;
27
28
k
=
ccp_bad
!=
0
;
29
ASSERT
(!(
k
));
30
}
31
32
return
;
33
}