fpc/tests/test/tprec9.pp
Jonas Maebe 340e2257f3 * don't allow taking the address of packed record fields
* don't allow using packed record fields as loopvars

git-svn-id: trunk@4509 -
2006-08-27 11:08:39 +00:00

14 lines
114 B
ObjectPascal

{ %fail }
type
tr = bitpacked record
a,b: 0..7;
end;
var
r: tr;
p: pointer;
begin
p := @r.b;
end.