1 /* Verify that the inline instance has no extra DW_TAG_lexical_block between
2    the DW_TAG_inlined_subroutine and the DW_TAG_variable for the local.  */
3 /* { dg-options "-O -gdwarf -dA" } */
4 /* { dg-do compile } */
5 /* { dg-final { scan-assembler "DW_TAG_inlined_subroutine\[^\\(\]*\\(\[^\\)\]*\\)\[^\\(\]*\\(DIE \\(0x\[0-9a-f\]*\\) DW_TAG_formal_parameter\[^\\(\]*\\(DIE \\(0x\[0-9a-f\]*\\) DW_TAG_variable" } } */
6 /* { dg-final { scan-assembler-times "DW_TAG_inlined_subroutine" 2 } } */
7 
foo(int i)8 static int foo (int i)
9 {
10   volatile int j = i + 3;
11   return j - 2;
12 }
main()13 int main()
14 {
15   volatile int z = foo (-1);
16   return z;
17 }
18