PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gnat.dg / deref2.ads
blob84d509f915106a94efe89260da1ac16b0b99bf97
1 with deref1;
2 package deref2 is
3 type NT is tagged limited private;
5 function PT_View (Obj : not null access NT)
6 return not null access deref1.T'Class;
7 private
8 type PT (Obj : not null access NT) is new deref1.T with null record;
10 type NT is tagged limited record
11 PT_View : aliased PT (NT'Access);
12 end record;
13 end;