fpc/tests/webtbf/tw9039a.pp
Jonas Maebe c77d74127b * fixed some record size checks
(some are still broken, but can't be fixed currently because
    def.size/sym.getsize return an aint, which means low(aint)
    in case of structures with a size = high(aint)+1)

git-svn-id: trunk@7614 -
2007-06-09 19:48:14 +00:00

18 lines
340 B
ObjectPascal

{ %fail }
{ the reason this compiles is that tdef.size and tabstractvarsym.getsize }
{ both return an aint, and then the size of ta is reported as low(aint) }
type
ta = array[0..high(ptrint)] of byte;
tr = packed record
a: byte;
case byte of
0: (l: longint);
1: (e: ta);
end;
begin
writeln(sizeof(ta));
end.