Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gnat.dg / tagged_type_pkg.adb
blobdea1b54617ddcaf91bdf29543eec5cff13d554e7
1 package body Tagged_Type_Pkg is
3 function Pass_TT_Access (Obj : access TT'Class) return access TT'Class is
4 begin
5 if Obj = null then
6 return null;
8 else
9 -- The implicit conversion in the assignment to the return object
10 -- must fail if Obj's actual is not a library-level object.
12 return TT_Acc : access TT'Class := Obj do
13 TT_Acc := TT_Acc.Self;
14 end return;
15 end if;
16 end Pass_TT_Access;
18 end Tagged_Type_Pkg;