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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [inline-28.c] - Rev 826

Compare with Previous | Blame | View Log

/* PR c/36507 */
/* { dg-do run } */
/* { dg-options "-O0 -std=gnu89" } */
 
int
main (void)
{
  int i = 2;
  auto inline int f1 (void)
  {
    return i;
  }
  inline int f2 (void)
  {
    return i;
  }
  auto inline int f3 (void);
  auto inline int f3 (void)
  {
    return i;
  }
  auto inline int f4 (void);
  inline int f4 (void)
  {
    return i;
  }
  return f1 () + f2 () + f3 () + f4 () - 8;
}
 

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.