2016-11-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git] / gcc / testsuite / gnat.dg / specs / double_record_extension2.ads
blob8fa83dbce6ea7a6103297ca8edf1f4458d82a82d
1 -- { dg-do compile }
3 package double_record_extension2 is
5 type Base_Message_Type (Num_Bytes : Positive) is tagged record
6 Data_Block : String (1..Num_Bytes);
7 end record;
9 type Extended_Message_Type (Num_Bytes1 : Positive; Num_Bytes2 : Positive) is new Base_Message_Type (Num_Bytes1) with record
10 A: String (1..Num_Bytes2);
11 end record;
13 type Final_Message_Type is new Extended_Message_Type with record
14 B : Integer;
15 end record;
17 end double_record_extension2;