summaryrefslogtreecommitdiff
path: root/utils/instantfpc/examples/exitcode.pas
blob: a85bdf73dd0b33ea70fb833cb62de0bcde903cec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env instantfpc

{$mode objfpc}{$H+}

uses SysUtils;

var i: integer;
begin
  i:=StrToInt(ParamStr(1));
  writeln('exit code: ',i);
  Halt(i);
end.