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-931005-1.c
blob
c14656714b968315e34f47b022e8911ff79fc7eb
1
/*
2
931005-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 return!
12
#if 0
13
typedef
struct
14
{
15
char
x
;
16
}
T
;
17
18
T
19
f
(
s1
)
20
T s1
;
21
{
22
T s1a
;
23
s1a
.
x
=
s1
.
x
;
24
return
s1a
;
25
}
26
#endif
27
28
void
29
testTortureExecute
(
void
)
30
{
31
#if 0
32
T s1a
,
s1b
;
33
s1a
.
x
=
100
;
34
s1b
=
f
(
s1a
);
35
if
(
s1b
.
x
!=
100
)
36
ASSERT
(
0
);
37
return
;
38
#endif
39
}
40