mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 22:49:34 +02:00
22 lines
319 B
ObjectPascal
22 lines
319 B
ObjectPascal
{ %NORUN }
|
|
|
|
{$mode objfpc}
|
|
{$modeswitch multihelpers}
|
|
|
|
program tmshlp14;
|
|
|
|
type
|
|
THelper1 = class helper for TObject
|
|
type TInteger = integer;
|
|
end;
|
|
THelper2 = class helper for TObject
|
|
type TString = string;
|
|
end;
|
|
|
|
var
|
|
obj: TObject;
|
|
begin
|
|
writeln(sizeof(TObject.TInteger));
|
|
writeln(sizeof(TObject.TString));
|
|
end.
|