2016-11-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git] / gcc / testsuite / gnat.dg / taft_type2.adb
blob3a7a318cf6a526bd5d74630392d356b230bcf2e1
1 -- { dg-do compile }
2 -- { dg-options "-g" }
4 with Taft_Type2_Pkg; use Taft_Type2_Pkg;
6 package body Taft_Type2 is
8 procedure Proc is
9 A : T;
11 function F return T is
12 My_T : T;
13 begin
14 My_T := Open;
15 return My_T;
16 end;
18 begin
19 A := F;
20 end;
22 end Taft_Type2;