2 -- { dg-options "-O -fdump-tree-esra" }
4 with Opt34_Pkg
; use Opt34_Pkg
;
8 function Local_Fun
(Arg
: T_Private
) return T_Private
is
12 case Get_Integer
(Arg
) is
14 Result
:= Get_Private
(100);
16 Result
:= T_Private_Zero
;
25 Assert
(Get_Integer
(Local_Fun
(Get_Private
(1))) = 100);
28 -- { dg-final { scan-tree-dump "Created a replacement for result" "esra" } }