c++: constrained lambda error-recovery [PR108972]
[official-gcc.git] / gcc / testsuite / gnat.dg / array7.adb
blobd9df597cb3aa4338773b56b37c652edb56aa9edc
1 -- { dg-do compile }
2 -- { dg-options "-O -gnatp -fdump-tree-optimized" }
4 package body Array7 is
6 package body Range_Subtype is
7 function Get_Arr (Nbr : My_Range) return Arr_Acc is
8 begin
9 return new Arr (1 .. Nbr);
10 end;
11 end;
13 package body Range_Type is
14 function Get_Arr (Nbr : My_Range) return Arr_Acc is
15 begin
16 return new Arr (1 .. Nbr);
17 end;
18 end;
20 end Array7;
22 -- { dg-final { scan-tree-dump-not "MAX_EXPR" "optimized" } }