bug0014.pp 461 B

12345678910111213141516171819202122
  1. type
  2. prec = ^trec;
  3. trec = record
  4. p : prec;
  5. l : longint;
  6. end;
  7. function test(p1,p2 : prec) : boolean;
  8. begin
  9. if p1^.l=12 then
  10. case p1^.l of
  11. 123 : test:=(test(p1^.p,p2^.p) and test(p1^.p,p2^.p)) or
  12. (test(p1^.p,p2^.p) and test(p1^.p,p2^.p));
  13. 1234 : test:=(test(p1^.p,p2^.p) and test(p1^.p,p2^.p)) or
  14. (test(p1^.p,p2^.p) and test(p1^.p,p2^.p));
  15. end;
  16. end;
  17. begin
  18. end.