fpc/tests/webtbs/tw33417.pp
florian b9417cc51e * missing skiplabel added, resolves #33423
git-svn-id: trunk@38520 -
2018-03-13 18:45:32 +00:00

41 lines
575 B
ObjectPascal

type
tflags = bitpacked record // Flags
bit0,bit1,bit2,bit3,bit4,bit5,bit6,bit7 : boolean;
end;
var
gflags : tflags;
i : byte;
procedure p(pflags : tflags);
var
flags : tflags;
begin
flags:=gflags;
if flags.bit5 then
i:=1;
if pflags.bit5 then
i:=1;
if gflags.bit5 then
i:=1;
if not flags.bit6 then
i:=1;
if not pflags.bit6 then
i:=1;
if not gflags.bit6 then
i:=1;
end;
begin
gflags.bit4:=false;
gflags.bit5:=false;
gflags.bit6:=true;
i:=0;
p(gflags);
if i<>0 then
halt(i)
else
writeln('ok');
end.