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-961017-2.c
blob
ac4fa75ffd90ea45ce1fe69179bf662600cfc3d2
1
/*
2
961017-2.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
void
12
testTortureExecute
(
void
)
13
{
14
int
i
=
0
;
15
16
17
if
(
sizeof
(
unsigned long int
) ==
4
)
18
{
19
unsigned long int
z
=
0
;
20
21
do
{
22
z
-=
0x000040000
;
23
i
++;
24
if
(
i
>
0x0004000
)
25
ASSERT
(
0
);
26
}
while
(
z
>
0
);
27
return
;
28
}
29
else if
(
sizeof
(
unsigned int
) ==
4
)
30
{
31
unsigned int
z
=
0
;
32
33
do
{
34
z
-=
0x000040000
;
35
i
++;
36
if
(
i
>
0x0004000
)
37
ASSERT
(
0
);
38
}
while
(
z
>
0
);
39
return
;
40
}
41
else
42
return
;
43
}