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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [inline-30.c] - Blame information for rev 328

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

Line No. Rev Author Line
1 298 jeremybenn
/* PR c/36507 */
2
/* { dg-do run } */
3
/* { dg-options "-O0 -std=gnu99 -fgnu89-inline" } */
4
 
5
int
6
main (void)
7
{
8
  int i = 2;
9
  auto inline int f1 (void)
10
  {
11
    return i;
12
  }
13
  inline int f2 (void)
14
  {
15
    return i;
16
  }
17
  auto inline int f3 (void);
18
  auto inline int f3 (void)
19
  {
20
    return i;
21
  }
22
  auto inline int f4 (void);
23
  inline int f4 (void)
24
  {
25
    return i;
26
  }
27
  return f1 () + f2 () + f3 () + f4 () - 8;
28
}

powered by: WebSVN 2.1.0

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