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-loop-2.c
blob
db1834e589eb07a51d3b031d5f7fe07dec85a2a2
1
/*
2
loop-2.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
int
a
[
2
];
12
13
void
f
(
int
b
)
14
{
15
unsigned int
i
;
16
for
(
i
=
0
;
i
<
b
;
i
++)
17
a
[
i
] =
i
-
2
;
18
}
19
20
void
21
testTortureExecute
(
void
)
22
{
23
a
[
0
] =
a
[
1
] =
0
;
24
f
(
2
);
25
if
(
a
[
0
] != -
2
||
a
[
1
] != -
1
)
26
ASSERT
(
0
);
27
return
;
28
}