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-9.c
blob
3f3c8fe726d52adefae59affec39332d5661aed2
1
/*
2
loop-9.c from the execute part of the gcc torture tests.
3
*/
4
5
#include <testfwk.h>
6
7
#ifdef __SDCC
8
#pragma std_c89
9
#endif
10
11
/* Source: Neil Booth, from PR # 115. */
12
13
int
false
()
14
{
15
return
0
;
16
}
17
18
void
19
testTortureExecute
(
void
)
20
{
21
int
count
=
0
;
22
23
while
(
false
() ||
count
< -
123
)
24
++
count
;
25
26
if
(
count
)
27
ASSERT
(
0
);
28
29
return
;
30
}