summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/sso13.adb
blob: 26ef7624f06bf58d1bb069d265c7b3c5bfc19641 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--  { dg-do compile }

with System;

procedure SSO13 is
   type Pulse_Buffer_Type is abstract tagged null record
    with Bit_Order => System.High_Order_First,
         Scalar_Storage_order =>System.High_order_First;  --  { dg-warning "scalar storage order specified but no component clause" }
   type Pulse_Train_Type is abstract new Pulse_Buffer_Type with null record;
   type WO_Pulse_Train_Type is new Pulse_Train_Type with null record;
   type WO_Confirmation_Pulse_Train_Type is new WO_Pulse_Train_Type with record
      null;
   end record;

   type Update_Dwell_Type is abstract tagged null record
     with Bit_Order => System.High_Order_First,
          Scalar_Storage_order =>System.High_order_First;  --  { dg-warning "scalar storage order specified but no component clause" }
   type Confirmation_Dwell_Type is new Update_Dwell_Type with
   record
      Pulses : aliased WO_Pulse_Train_Type; -- (Location of Error #1)
   end record;
begin
   null;
end;