mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 18:10:29 +02:00

whose size is not a power of two + some more packed array/record tests git-svn-id: trunk@7610 -
18 lines
205 B
ObjectPascal
18 lines
205 B
ObjectPascal
type
|
|
tstr = string[2];
|
|
tarr = bitpacked array[0..20] of tstr;
|
|
|
|
procedure p(var a: tstr);
|
|
begin
|
|
a := 'ab';
|
|
end;
|
|
|
|
var
|
|
a: tarr;
|
|
begin
|
|
a[0]:='gh';
|
|
p(a[0]);
|
|
if (a[0]<>'ab') then
|
|
halt(1);
|
|
end.
|