2 -- { dg-options "-O -gnatp -fdump-tree-optimized" }
6 package body Range_Subtype
is
7 function Get_Arr
(Nbr
: My_Range
) return Arr_Acc
is
9 return new Arr
(1 .. Nbr
);
13 package body Range_Type
is
14 function Get_Arr
(Nbr
: My_Range
) return Arr_Acc
is
16 return new Arr
(1 .. Nbr
);
22 -- { dg-final { scan-tree-dump-not "MAX_EXPR" "optimized" } }