mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 00:49:31 +02:00
19 lines
262 B
ObjectPascal
19 lines
262 B
ObjectPascal
program testbug;
|
|
|
|
type
|
|
PTestRec = ^TTestRec;
|
|
TTestRec = record
|
|
Val: Integer;
|
|
Next: PTestRec;
|
|
end;
|
|
|
|
var
|
|
TR: TTestRec;
|
|
|
|
begin
|
|
TR.Val := 6;
|
|
TR.Next := nil;
|
|
if (TR.Val = 10) or ((TR.Val = 5) and (TR.Next^.Val = 5)) then
|
|
Writeln('OK');
|
|
end.
|