OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [nest-stdar-1.c] - Blame information for rev 307

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
#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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.