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-20000707-1.c
blob
1f618d94ea8ff4139a818e427fa810e0ea1bb71a
1
/*
2
20000707-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 sdcc supports struct passing
12
#if 0
13
struct
baz
{
14
int
a
,
b
,
c
;
15
};
16
17
void
18
foo
(
int
a
,
int
b
,
int
c
)
19
{
20
if
(
a
!=
4
)
21
ASSERT
(
0
);
22
}
23
24
void
25
bar
(
struct
baz x
,
int
b
,
int
c
)
26
{
27
foo
(
x
.
b
,
b
,
c
);
28
}
29
#endif
30
31
void
32
testTortureExecute
(
void
)
33
{
34
#if 0
35
struct
baz x
= {
3
,
4
,
5
};
36
bar
(
x
,
1
,
2
);
37
return
;
38
#endif
39
}
40