summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr44964.c
blob: 6c252ee2616b83a3b0ec6d88f3cf0344822bd707 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do compile } */
/* { dg-options "-fkeep-inline-functions -O" } */

static inline __attribute__ ((const))
int baz (int i)
{
  return i;
}

static __attribute__ ((always_inline))
inline __attribute__ ((flatten))
void bar (void)
{
  baz (0);
}

void
foo (void)
{
  bar ();
}