aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/limited_with5.adb
blob: c3bf270b35e742f5e5a36dc306b4b9dd93e0e75d (plain)
1
2
3
4
5
6
7
8
9
10
11
-- { 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;