Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gnat.dg/array7.adb @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
-- { dg-do compile } -- { dg-options "-O -gnatp -fdump-tree-optimized" } package body Array7 is package body Range_Subtype is function Get_Arr (Nbr : My_Range) return Arr_Acc is begin return new Arr (1 .. Nbr); end; end; package body Range_Type is function Get_Arr (Nbr : My_Range) return Arr_Acc is begin return new Arr (1 .. Nbr); end; end; end Array7; -- { dg-final { scan-tree-dump-not "MAX_EXPR" "optimized" } }