mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 21:08:30 +02:00

whose size is not a power of two + some more packed array/record tests git-svn-id: trunk@7610 -
24 lines
237 B
ObjectPascal
24 lines
237 B
ObjectPascal
{ %fail }
|
|
|
|
type
|
|
pbyte = ^byte;
|
|
|
|
tr = bitpacked record
|
|
a,b,c: byte;
|
|
d,e:0..15;
|
|
f: byte;
|
|
g: 0..$ffffff; { 3 bytes }
|
|
h: byte;
|
|
end;
|
|
|
|
procedure p(b: pbyte);
|
|
begin
|
|
b^ := $12
|
|
end;
|
|
|
|
var
|
|
r: tr;
|
|
begin
|
|
p(@r.d);
|
|
end.
|