doc: Mark up __cxa_atexit as @code.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / nest-stdar-1.c
blob6d9fbb7b461ffc42523e4ce84bcbfacd05e3b535
1 #include <stdarg.h>
3 void abort (void);
4 void exit (int);
6 int
7 main (void)
9 double f (int x, ...)
11 va_list args;
12 double a;
14 va_start (args, x);
15 a = va_arg (args, double);
16 va_end (args);
17 return a;
20 if (f (1, (double)1) != 1.0)
21 abort ();
22 exit (0);