mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 00:48:25 +02:00
19 lines
395 B
ObjectPascal
19 lines
395 B
ObjectPascal
{ %FAIL }
|
|
{ Old file: tbf0087.pp }
|
|
{ shows internal error 12 - no more SegFaults OK 0.99.1 (FK) }
|
|
|
|
{
|
|
BP Error message is 'Pointer variable Expected'
|
|
}
|
|
type
|
|
tobj=object
|
|
l : longint;
|
|
constructor init;
|
|
end;
|
|
var
|
|
o : tobj;
|
|
begin
|
|
new(o); {This will create a internal error 9999}
|
|
new(o,init); {This will create a Segfault and Core Dump under linux}
|
|
end.
|