fpc/tests/webtbf/tw28338.pp
Jonas Maebe 7866bae173 * don't crash when trying to access the call_self_node in case it doesn't
exit, but instead give an error (bug introduced in r30950, mantis #28338)

git-svn-id: trunk@31150 -
2015-06-23 21:23:29 +00:00

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.