aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/pr80321.c
blob: e75572e7898329ff1bcf1378080807c804d16d0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* PR debug/80321 */
/* { dg-do compile } */
/* { dg-options "-fkeep-inline-functions" } */

void bar (void);

static inline void
test (int x)
{
  inline void
  foo (int x)
  {
    test (0);
    asm volatile ("" : : : "memory");
  }
  if (x != 0)
    foo (x);
  else
    bar ();
}

void
baz (int x)
{
  test (x);
}