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-951003-1.c
blob
a973b341e6d5cabfe7fa224daef662c351d055d2
1
/*
2
951003-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 85
10
#endif
11
12
int
f
(
int
i
) {
return
12
; }
13
int
g
() {
return
0
; }
14
15
void
16
testTortureExecute
(
void
)
17
{
18
int
i
,
s
;
19
20
for
(
i
=
0
;
i
<
32
;
i
++)
21
{
22
s
=
f
(
i
);
23
24
if
(
i
==
g
())
25
s
=
42
;
26
if
(
i
==
0
||
s
==
12
)
27
;
28
else
29
ASSERT
(
0
);
30
}
31
32
return
;
33
}
34