mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 18:47:54 +02:00

exit, but instead give an error (bug introduced in r30950, mantis #28338) git-svn-id: trunk@31150 -
18 lines
247 B
ObjectPascal
18 lines
247 B
ObjectPascal
{ %fail }
|
|
|
|
{$mode objfpc}
|
|
|
|
program Project1;
|
|
type
|
|
tmyobj=object
|
|
a:integer;
|
|
function getsize:integer;
|
|
end;
|
|
function tmyobj.getsize:integer;
|
|
begin
|
|
result:=sizeof(self);
|
|
end;
|
|
begin
|
|
writeln(tmyobj.getsize);
|
|
end.
|