Fix the new pr83361.c testcase
[official-gcc.git] / gcc / testsuite / gnat.dg / specs / last_bit.ads
blobecfc2540a8ae73e7ec3d3a1f602a498e51a4a49a
1 -- { dg-do compile }
3 package Last_Bit is
5 Max_Components : constant := 100;
6 type Count_Type is new Natural range 0 .. Max_Components;
7 subtype Index_Type is Count_Type range 1 .. Count_Type'Last;
9 type List_Type is array (Index_Type range <>) of Integer;
11 type Record_Type (Count : Count_Type := 0) is record
12 List : List_Type (1 .. Count);
13 end record;
15 Null_Record : Record_Type (Count => 0);
17 List_Last_Bit : Integer := Null_Record.List'Last_Bit;
19 end Last_Bit;