comparison gcc/testsuite/g++.dg/debug/dwarf2/array-2.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
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 } } */