Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2 /* { dg-options "-gdwarf-2 -dA" } */
3 struct S
4 {
5 S() {}
6 ~S() {}
7 };
8
9 const S array[2] = { S(), S() };
10
11 /* Like array-3, but with a non-member array without a separate
12 declaration, to check that we don't issue the nonsensical
13 DW_TAG_const_type used by the member array declaration there. */
14 /* { dg-final { scan-assembler-times " DW_TAG_const_type" 3 } } */
15 /* { dg-final { scan-assembler-times " DW_TAG_subrange_type" 2 } } */
16 /* { dg-final { scan-assembler-times " DW_AT_upper_bound" 1 } } */