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-930513-2.c
blob
62e35bdf118b9e96de475e7e664240b681fcc93b
1
/*
2
930513-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
#pragma disable_warning 85
10
#endif
11
12
void
sub3
(
const int
*
i
)
13
{
14
}
15
16
void
eq
(
int
a
,
int
b
)
17
{
18
static int
i
=
0
;
19
if
(
a
!=
i
)
20
ASSERT
(
0
);
21
i
++;
22
}
23
24
void
25
testTortureExecute
(
void
)
26
{
27
int
i
;
28
29
for
(
i
=
0
;
i
<
4
;
i
++)
30
{
31
const int
j
=
i
;
32
int
k
;
33
sub3
(&
j
);
34
k
=
j
;
35
eq
(
k
,
k
);
36
}
37
return
;
38
}
39