Debian Codegraph @

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

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