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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [va-arg-26.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
double f (float f1, float f2, float f3, float f4,
4
          float f5, float f6, ...)
5
{
6
  va_list ap;
7
  double d;
8
 
9
  va_start (ap, f6);
10
  d = va_arg (ap, double);
11
  va_end (ap);
12
  return d;
13
}
14
 
15
int main ()
16
{
17
  if (f (1, 2, 3, 4, 5, 6, 7.0) != 7.0)
18
    abort ();
19
  exit (0);
20
}

powered by: WebSVN 2.1.0

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