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
/
bug-2596.c
blob
de2b535f6bc4e3c64af68e2d6933240d399b1386
1
/*
2
bug-?.c
3
*/
4
5
#include <testfwk.h>
6
7
#include <stdarg.h>
8
9
int
i
;
10
11
static
inline
void
f
(
int
x
, ...)
12
{
13
va_list
v
;
14
15
va_start
(
v
,
x
);
16
17
i
=
va_arg
(
v
,
int
);
18
19
va_end
(
v
);
20
}
21
22
void
testBug
(
void
)
23
{
24
f
(
0
,
1
);
25
26
ASSERT
(
i
==
1
);
27
}
28