mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 23:09:09 +02:00
* extended test
git-svn-id: trunk@15582 -
This commit is contained in:
parent
572f51867c
commit
0f269a4a7b
@ -66,6 +66,7 @@ end;
|
|||||||
|
|
||||||
var
|
var
|
||||||
A: TMyObject;
|
A: TMyObject;
|
||||||
|
gotexception: boolean;
|
||||||
begin
|
begin
|
||||||
HaltOnNotReleased := true;
|
HaltOnNotReleased := true;
|
||||||
CreatedCount := 0;
|
CreatedCount := 0;
|
||||||
@ -80,6 +81,8 @@ begin
|
|||||||
except
|
except
|
||||||
writeln('created objects = ', CreatedCount);
|
writeln('created objects = ', CreatedCount);
|
||||||
writeln('destroyed objects = ', DestroyedCount);
|
writeln('destroyed objects = ', DestroyedCount);
|
||||||
|
gotexception:=true;
|
||||||
writeln;
|
writeln;
|
||||||
end;
|
end;
|
||||||
|
if not gotexception then halt(1);
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user