fpc/tests/test/tvrec1.pp
2023-09-28 22:42:49 +00:00

20 lines
218 B
ObjectPascal

program tvrec1;
type
TTestRec = record
case (A, B) of
A: (I: Integer);
B: (D: Double);
end;
var
rec: TTestRec;
begin
if @rec.I=@rec.D then
begin
WriteLn('ok');
halt(0);
end;
halt(1);
end.