8sa1-gcc/gcc/testsuite/gcc.c-torture/execute/nest-stdar-1.c
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

20 lines
267 B
C

#include <stdarg.h>
main ()
{
static double f (int x, ...)
{
va_list args;
double a;
va_start (args, x);
a = va_arg (args, double);
va_end (args);
return a;
}
if (f (1, (double)1) != 1.0)
abort ();
exit (0);
}