fpc/tests/webtbs/tw3064.pp
florian 08f0419e3e + $A similiar to $align on/off added
git-svn-id: trunk@551 -
2005-07-01 18:49:55 +00:00

29 lines
357 B
ObjectPascal

type
r1 = packed record
b : byte;
l : longint;
end;
r2 = record
b : byte;
l : longint;
end;
{$a-}
r3 = record
b : byte;
l : longint;
end;
{$a+}
r4 = record
b : byte;
l : longint;
end;
begin
if (sizeof(r1)<>sizeof(r3)) or (sizeof(r2)<>sizeof(r4)) then
halt(1);
writeln('ok');
end.