mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 21:28:21 +02:00
26 lines
285 B
ObjectPascal
26 lines
285 B
ObjectPascal
{ %OPT=-gh }
|
|
|
|
{$ifdef fpc}
|
|
{$mode delphi}
|
|
{$endif}
|
|
|
|
program failtest;
|
|
|
|
type
|
|
TMyClass = class
|
|
constructor Create;
|
|
end;
|
|
|
|
constructor TMyClass.Create;
|
|
begin
|
|
Fail;
|
|
end;
|
|
|
|
var
|
|
MyClass : TMyClass;
|
|
|
|
begin
|
|
HaltOnNotReleased := true;
|
|
MyClass := TMyClass.Create;
|
|
end.
|