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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr48731.c] - Rev 754

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

/* { dg-do compile } */
 
#include <stdarg.h>
 
int blah(int a, ...)
{
  va_list va;
  va_start(va,a);
  if (a == 0)
    return -1;
  else 
    {
      int i;
      for (i = 0; i < a; i++)
	va_arg(va,int);
      return va_arg(va,int);
    }
}
 
__attribute((flatten))
int blah2(int b, int c)
{
  return blah(2, b, c);
}
 

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

powered by: WebSVN 2.1.0

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