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-980716-1.c
blob
da587e4459c033b5300225a0ba74d3145253d5e9
1
/*
2
980716-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
#include <stdarg.h>
12
13
void
14
stub
(
int
num
, ...)
15
{
16
va_list
ap
;
17
char
*
end
;
18
int
i
;
19
20
for
(
i
=
0
;
i
<
2
;
i
++) {
21
va_start
(
ap
,
num
);
22
while
(
1
) {
23
end
=
va_arg
(
ap
,
char
*);
24
if
(!
end
)
break
;
25
}
26
va_end
(
ap
);
27
}
28
}
29
30
void
31
testTortureExecute
(
void
)
32
{
33
stub
(
1
,
"ab"
,
"bc"
,
"cx"
,
0
);
34
return
;
35
}
36