Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/debug/dwarf2/inline4.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
/* Verify that the inline instance has no extra DW_TAG_lexical_block between the DW_TAG_inlined_subroutine and the DW_TAG_variable for the local. */ /* { dg-options "-O -gdwarf -dA" } */ /* { dg-do compile } */ /* { 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" } } */ /* { dg-final { scan-assembler-times "DW_TAG_inlined_subroutine" 2 } } */ static int foo (int i) { volatile int j = i + 3; return j - 2; } int main() { volatile int z = foo (-1); return z; }