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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [va-arg-12.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
#include <stdarg.h>
2
 
3
/*typedef unsigned long L;*/
4
typedef double L;
5
void f (L p0, L p1, L p2, L p3, L p4, L p5, L p6, L p7, L p8, ...)
6
{
7
  va_list select;
8
 
9
  va_start (select, p8);
10
 
11
  if (va_arg (select, L) != 10.)
12
    abort ();
13
  if (va_arg (select, L) != 11.)
14
    abort ();
15
  if (va_arg (select, L) != 0.)
16
    abort ();
17
 
18
  va_end (select);
19
}
20
 
21
int main ()
22
{
23
  f (1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11., 0.);
24
  exit (0);
25
}

powered by: WebSVN 2.1.0

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