view gcc/testsuite/gnat.dg/limited_with5.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 -gnatn -Winline" }

package body Limited_With5 is
  procedure Doit (Obj : Limited_With5_Pkg.T) is
  begin
    if Limited_With5_Pkg.Get_Expression_Support (Obj) > Sup_T'(100) then
      raise Program_Error;
    end if;
  end Doit;
end Limited_With5;