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-20010123-1.c
blob
aa6c48ef10fca494a70089726b00186aa8745718
1
/*
2
20010123-1.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
// TODO: Enable when supported by sdcc!
12
13
struct
s
14
{
15
int
value
;
16
char
*
string
;
17
};
18
19
void
20
testTortureExecute
(
void
)
21
{
22
#if 0
23
int
i
;
24
for
(
i
=
0
;
i
<
4
;
i
++)
25
{
26
struct
s
*
t
= & (
struct
s
) {
3
,
"hey there"
};
27
if
(
t
->
value
!=
3
)
28
ASSERT
(
0
);
29
t
->
value
=
4
;
30
if
(
t
->
value
!=
4
)
31
ASSERT
(
0
);
32
}
33
return
;
34
#endif
35
}
36