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/] [va-arg-1.c] - Blame information for rev 298

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

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

powered by: WebSVN 2.1.0

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