Debian Codegraph @

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

raw
1 /* Verify that at least one of both inline instances have
2 a DW_AT_ranges but no extra DW_TAG_lexical_block. */
3 /* { dg-options "-Os -gdwarf -dA" } */
4 /* { dg-do compile } */
5 /* { dg-final { scan-assembler-times "\\(DIE \\(\[^\n\]*\\) DW_TAG_inlined_subroutine" 2 } } */
6 /* { dg-final { scan-assembler " DW_AT_ranges" } } */
7 /* { dg-final { scan-assembler-times "\\(DIE \\(\[^\n\]*\\) DW_TAG_lexical_block" 0 } } */
8
9 static int foo (int i)
10 {
11 volatile int j = i + 3;
12 if (j == 3)
13 return 0;
14 return j - 2;
15 }
16 int main()
17 {
18 volatile int z = foo (-2) && foo (-1);
19 return z;
20 }