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
Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
gcc-torture-execute-961004-1.c
blob
a07710e6baf0e535af28dec4f45c7d5bc41b0423
1
/*
2
961004-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
#pragma disable_warning 84
10
#endif
11
12
int
k
=
0
;
13
14
void
15
testTortureExecute
(
void
)
16
{
17
int
i
;
18
int
j
;
19
20
for
(
i
=
0
;
i
<
2
;
i
++)
21
{
22
if
(
k
)
23
{
24
if
(
j
!=
2
)
25
ASSERT
(
0
);
26
}
27
else
28
{
29
j
=
2
;
30
k
++;
31
}
32
}
33
return
;
34
}