mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-11 13:49:07 +02:00
New test
This commit is contained in:
parent
887bd2607f
commit
ab33e7d8f8
34
tests/webtbs/tw1433.pp
Normal file
34
tests/webtbs/tw1433.pp
Normal 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.
|
Loading…
Reference in New Issue
Block a user