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-va-arg-20.c
blob
bfc1731f3c3b28c33547c5c0cb7087f2fd2c693f
1
/*
2
va-arg-20.c from the execute part of the gcc torture tests.
3
*/
4
5
#include <testfwk.h>
6
7
#pragma disable_warning 85
8
9
#include <stdarg.h>
10
11
void
foo
(
va_list
v
)
12
{
13
unsigned long long
x
=
va_arg
(
v
,
unsigned long long
);
14
if
(
x
!=
16LL
)
15
ASSERT
(
0
);
16
}
17
18
void
bar
(
char
c
,
char
d
, ...)
19
{
20
va_list
v
;
21
va_start
(
v
,
d
);
22
foo
(
v
);
23
va_end
(
v
);
24
}
25
26
void
27
testTortureExecute
(
void
)
28
{
29
bar
(
0
,
0
,
16LL
);
30
return
;
31
}