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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [nest-stdar-1.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 688 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.