Debian Codegraph @

gcc/testsuite/g++.dg/debug/dwarf2/array-2.C

raw
1 /* { dg-do compile } */
2 /* { dg-options "-gdwarf-2 -dA" } */
3 struct S
4 {
5 typedef int i_t;
6 static i_t array[42];
7 };
8
9 int S::array[42];
10
11 /* Verify that we get two DW_TAG_subrange_type (plus abbrev), and two
12 DW_AT_upper_bound, because a different symbolic name is used for
13 the array element type. */
14 /* { dg-final { scan-assembler-times " DW_TAG_subrange_type" 3 } } */
15 /* { dg-final { scan-assembler-times " DW_AT_upper_bound" 2 } } */