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
Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
gcc-torture-execute-990525-1.c
blob
4332ec79b0d09c0a63c4cc0c05a7a30e2ff9503c
1
/*
2
990525-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
#endif
10
11
// TODO: Enable when sdcc supports struct!
12
#if 0
13
struct
blah
{
14
int
m1
,
m2
;
15
};
16
17
void
die
(
struct
blah arg
)
18
{
19
int
i
;
20
struct
blah buf
[
1
];
21
22
for
(
i
=
0
;
i
<
1
;
buf
[
i
++] =
arg
)
23
;
24
if
(
buf
[
0
].
m1
!=
1
) {
25
ASSERT
(
0
);
26
}
27
}
28
#endif
29
30
void
31
testTortureExecute
(
void
)
32
{
33
#if 0
34
struct
blah s
= {
1
,
2
};
35
36
die
(
s
);
37
return
;
38
#endif
39
}
40