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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [931004-8.c] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
#include <stdarg.h>
#include <stdarg.h>
 
 
struct tiny
struct tiny
{
{
  char c;
  char c;
};
};
 
 
f (int n, ...)
f (int n, ...)
{
{
  struct tiny x;
  struct tiny x;
  int i;
  int i;
 
 
  va_list ap;
  va_list ap;
  va_start (ap,n);
  va_start (ap,n);
  for (i = 0; i < n; i++)
  for (i = 0; i < n; i++)
    {
    {
      x = va_arg (ap,struct tiny);
      x = va_arg (ap,struct tiny);
      if (x.c != i + 10)
      if (x.c != i + 10)
        abort();
        abort();
    }
    }
  {
  {
    long x = va_arg (ap, long);
    long x = va_arg (ap, long);
    if (x != 123)
    if (x != 123)
      abort();
      abort();
  }
  }
  va_end (ap);
  va_end (ap);
}
}
 
 
main ()
main ()
{
{
  struct tiny x[3];
  struct tiny x[3];
  x[0].c = 10;
  x[0].c = 10;
  x[1].c = 11;
  x[1].c = 11;
  x[2].c = 12;
  x[2].c = 12;
  f (3, x[0], x[1], x[2], (long) 123);
  f (3, x[0], x[1], x[2], (long) 123);
  exit(0);
  exit(0);
}
}
 
 
 
 

powered by: WebSVN 2.1.0

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