fpc/tests/webtbs/tw15415.pp
2009-12-22 15:19:05 +00:00

13 lines
155 B
ObjectPascal

{$mode delphi}
type
TMyClass = class
i, i2 :Integer;
end;
begin
if ptruint(@TMyClass(pointer(5)).i2)<>(5+sizeof(pointer)+4) then
halt(1);
end.