Debian Codegraph @

gcc/testsuite/gcc.dg/debug/dwarf2/array-0.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-gdwarf-2 -dA" } */
3 extern int array[42];
4
5 int array[42];
6
7 /* Verify that we get only one DW_TAG_subtrange_type (plus abbrev),
8 with a DW_AT_upper_bound. */
9 /* { dg-final { scan-assembler-times " DW_TAG_subrange_type" 2 } } */
10 /* { dg-final { scan-assembler-times " DW_AT_upper_bound" 1 } } */