mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 21:28:21 +02:00
17 lines
271 B
ObjectPascal
17 lines
271 B
ObjectPascal
{$ifdef FPC}
|
|
{$mode macpas}
|
|
{$endif}
|
|
{$align power}
|
|
program StrSizeTest;
|
|
type
|
|
StrRec =
|
|
record
|
|
s1: string[ 10];
|
|
s2: string[ 10];
|
|
end;
|
|
begin
|
|
writeln( 'SizeOf( StrRec) = ', SizeOf( StrRec));
|
|
if (sizeof(strrec)<>24) then
|
|
halt(1);
|
|
end.
|