repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
nest-stdar-1.c
blob
492670b5a1e729c5a2d32f98049ff6708120fc2a
1
#include <stdarg.h>
2
3
main
()
4
{
5
double
f
(
int
x
, ...)
6
{
7
va_list
args
;
8
double
a
;
9
10
va_start
(
args
,
x
);
11
a
=
va_arg
(
args
,
double
);
12
va_end
(
args
);
13
return
a
;
14
}
15
16
if
(
f
(
1
, (
double
)
1
) !=
1.0
)
17
abort
();
18
exit
(
0
);
19
}