PR testsuite/86649
[official-gcc.git] / gcc / testsuite / gnat.dg / discr53.adb
blob2e362a7fd2974e81ca1bd2f343e881a522d3f240
1 -- { dg-do compile }
3 package body Discr53 is
5 function F return Rec is
6 Data : Rec;
7 begin
8 return Data;
9 end;
11 type Ptr is access Rec;
13 procedure Proc is
14 Local : Ptr;
15 begin
16 Local := new Rec'(F);
17 end;
19 end Discr53;