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-6.c
blob
568daf8e768fe976340377e8f7055e51243cc2b1
1
/*
2
loop-6.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
void
12
testTortureExecute
(
void
)
13
{
14
char
c
;
15
char
d
;
16
int
nbits
;
17
c
= -
1
;
18
for
(
nbits
=
1
;
nbits
<
100
;
nbits
++) {
19
d
= (
1
<<
nbits
) -
1
;
20
if
(
d
==
c
)
21
break
;
22
}
23
if
(
nbits
==
100
)
24
ASSERT
(
0
);
25
return
;
26
}