aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/inline5_pkg.adb
blob: 66b00cab2933c74df02930d01d895ff16c6adc23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package body Inline5_Pkg is

  procedure Test (I : Integer) is

    function F (J : Integer) return Integer is
    begin
      return I - J;
    end;

  begin
    if I /= F (I) then
      raise Program_Error;
    end if;
  end;

end Inline5_Pkg;