summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/dwarf2/inline1.c
blob: 11c8fad7841bdafbda9e87c9fdece86256fe438e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-O0 -gdwarf-2 -dA" } */
void e(int);
__attribute__ ((always_inline)) inline int
t(int function_parameter)
{
  e(function_parameter);
}

void test (int function_parameter2)
{
  t(function_parameter2);
}

/* Verify that we get both function_parameter and function_parameter2 declared
   in test.  Overall we should have 3 variables with location defined (also
   function_parameter in offline copy of t.  */
/* { dg-final { scan-assembler-times " DW_AT_location" 3 } } */