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] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
 
3
#include <stdarg.h>
4
 
5
int blah(int a, ...)
6
{
7
  va_list va;
8
  va_start(va,a);
9
  if (a == 0)
10
    return -1;
11
  else
12
    {
13
      int i;
14
      for (i = 0; i < a; i++)
15
        va_arg(va,int);
16
      return va_arg(va,int);
17
    }
18
}
19
 
20
__attribute((flatten))
21
int blah2(int b, int c)
22
{
23
  return blah(2, b, c);
24
}

powered by: WebSVN 2.1.0

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