fpc/tests/test/tparray23.pp
Jonas Maebe 10341eabaa * don't allow taking the address of ordinal bitpacked array elements
whose size is not a power of two
  + some more packed array/record tests

git-svn-id: trunk@7610 -
2007-06-09 18:13:04 +00:00

18 lines
188 B
ObjectPascal

{ %fail }
type
trange = 0..$ffffff;
prange = ^trange;
tarr = bitpacked array[0..20] of trange;
procedure p(a: prange);
begin
end;
var
a: tarr;
begin
a[0]:=5;
p(@a[0]);
end.