This commit is contained in:
pierre 2001-08-06 13:03:49 +00:00
parent 887bd2607f
commit ab33e7d8f8

34
tests/webtbs/tw1433.pp Normal file
View File

@ -0,0 +1,34 @@
{ %OPT=-gh }
{ The only problem is that we don't really get a
non zero exitcode if some memory is not freed PM }
{ Source provided for Free Pascal Bug Report 1433 }
{ Submitted by "Aleksey V. Vaneev" on 2001-03-10 }
{ e-mail: picoder@sbis.komi.ru }
{$mode objfpc}
function ExitTest1: Boolean;
var
aa: AnsiString;
begin
exit (False);
aa := 'BUMBUM';
end;
function ExitTest2: Boolean;
var
aa: AnsiString;
begin
Result := False;
exit;
aa := 'MUBMUB';
end;
begin
ExitTest1;
ExitTest2;
end.