Debian Codegraph @

gcc/testsuite/gnat.dg/specs/debug1.ads

raw
1 -- { dg-do compile }
2 -- { dg-skip-if "No Dwarf" { { hppa*-*-hpux* } && { ! lp64 } } }
3 -- { dg-options "-cargs -O0 -g -dA -fgnat-encodings=minimal -margs" }
4
5 package Debug1 is
6
7 type Index_T is new Positive range 1 .. 128;
8
9 type Array_Type is array (Index_T range <>) of Integer;
10
11 type Record_Type (N : Index_T := 16) is record
12 A : Array_Type (1 .. N);
13 end record;
14
15 R : Record_Type;
16
17 end Debug1;
18
19 -- { dg-final { scan-assembler-times "DW_AT_upper_bound" 4 } }