aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/sso12.adb
blob: c36b1e38a18febe8a64032b4ebef4f0c102679a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-- { dg-do compile }

with Ada.Unchecked_Deallocation;
with System;

procedure SSO12 is
   type Rec is abstract tagged null record;
   for Rec'Scalar_Storage_Order use System.High_Order_First;  --  { dg-warning "scalar storage order specified but no component clause" }
   for Rec'Bit_Order use System.High_Order_First;

   type Rec_Acc is access all Rec'Class;

   procedure Free is new Ada.Unchecked_Deallocation (Rec'Class, Rec_Acc);
   X : Rec_Acc;
begin
   Free (X);
end SSO12;