Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*.
[official-gcc.git] / gcc / testsuite / gnat.dg / elab1.ads
blob2d656ea7fa2f4df52ca22f21a79ca207aa082edd
1 package elab1 is
3 -- the forward declaration is the trigger
4 type Stream;
6 type Stream_Ptr is access Stream;
8 type Stream is array (Positive range <>) of Character;
10 function Get_Size (S : Stream_Ptr) return Natural;
12 type Rec (Size : Natural) is
13 record
14 B : Boolean;
15 end record;
17 My_Desc : constant Stream_Ptr := new Stream'(1 => ' ');
19 My_Size : constant Natural := Get_Size (My_Desc);
21 subtype My_Rec is Rec (My_Size);
23 end;