aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/dwarf2/array-3.c
blob: 077a62ef9a3bf24a08162977bf847f18a2ac0c17 (plain)
1
2
3
4
5
6
7
8
/* { dg-do compile } */
/* { dg-options "-gdwarf-2 -dA" } */
int array[] = { 0, 1, 2 };

/* Verify that we get only one DW_TAG_subtrange_type (plus abbrev)
   with DW_AT_upper_bound.  */
/* { dg-final { scan-assembler-times " DW_TAG_subrange_type" 2 } } */
/* { dg-final { scan-assembler-times " DW_AT_upper_bound" 1 } } */