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-920501-1.c
blob
281aaf8b791da3ee50958274a4e6a8559a38e552
1
/*
2
920501-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
#pragma disable_warning 85
10
#endif
11
12
int
s
[
2
];
13
14
int
15
x
(
int
parm
)
16
{
17
if
(!
s
[
0
])
18
{
19
s
[
1
+
s
[
1
]]=
s
[
1
];
20
return
1
;
21
}
22
}
23
24
void
25
testTortureExecute
(
void
){
s
[
0
]=
s
[
1
]=
0
;
if
(
x
(
0
)!=
1
)
ASSERT
(
0
);
return
;}
26