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
[ucsim-z80] Fix #3828: uCsim SM83 flags simulation
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
gcc-torture-execute-921117-1.c
blob
fb83afdbc55d88b6d433c50996a16ef1d1e181ba
1
/*
2
921117-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 passing!
12
#if 0
13
struct
s
{
14
char
text
[
11
];
15
int
flag
;
16
}
cell
;
17
18
int
19
check
(
struct
s p
)
20
{
21
if
(
p
.
flag
!=
99
)
22
return
1
;
23
return
strcmp
(
p
.
text
,
"0123456789"
);
24
}
25
#endif
26
27
void
28
testTortureExecute
(
void
)
29
{
30
#if 0
31
cell
.
flag
=
99
;
32
strcpy
(
cell
.
text
,
"0123456789"
);
33
34
if
(
check
(
cell
))
35
ASSERT
(
0
);
36
return
;
37
#endif
38
}
39