Debian Codegraph @

gcc/testsuite/gcc.dg/debug/dwarf2/inline1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O0 -gdwarf -dA -fgnu89-inline" } */
3 void e(int);
4 __attribute__ ((always_inline)) inline int
5 t(int function_parameter)
6 {
7 e(function_parameter);
8 }
9
10 void test (int function_parameter2)
11 {
12 t(function_parameter2);
13 }
14
15 /* Verify that we get both function_parameter and function_parameter2 declared
16 in test. Overall we should have 3 variables with location defined (also
17 function_parameter in offline copy of t. */
18 /* { dg-final { scan-assembler-times " DW_AT_location" 3 } } */