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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [inline-29.c] - Rev 801

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

/* PR c/36507 */
/* { dg-do run } */
/* { dg-options "-O0 -std=gnu99" } */
 
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;
}
 

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.