2016-11-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git] / gcc / testsuite / gnat.dg / specs / ai_116.ads
blob88d7e9876888d0c6294f4224b2508868fe03485b
1 -- { dg-do compile }
3 with Ada.Finalization; use Ada;
4 package ai_116 is
5 pragma Preelaborate;
6 type Buffer_Type is limited interface;
8 type Handle is new Finalization.Limited_Controlled and Buffer_Type with
9 private;
10 pragma Preelaborable_Initialization(Handle);
12 type Ptr is access all String;
13 Null_Handle : constant Handle;
15 private
16 type Handle is new Finalization.Limited_Controlled and Buffer_Type with
17 record
18 Data : Ptr := null;
19 end record;
21 Null_Handle : constant Handle :=
22 (Finalization.Limited_Controlled with Data => null);
23 end ai_116;