2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gnat.dg / self1.adb
blobdc6f485b8febafb8cfedcfcc106b29a9f8e8a2bf
1 -- { dg-do compile }
3 procedure Self1 is
4 type Event;
6 type Link (E : access Event) is limited record
7 Val : Integer;
8 end record;
10 type Ptr is access all Event;
12 type Event is tagged limited record
13 Inner : Link (Event'access);
14 Size : Integer;
15 end record;
17 Obj2 : Ptr := new Event'(Inner => (Event'access, 15),
18 Size => Link'size);
19 begin
20 null;
21 end;