tisorec5.pp 412 B

12345678910111213141516171819202122232425
  1. {$mode iso}
  2. type
  3. tr = record
  4. l : longint;
  5. case i : integer of
  6. 1 : (s : array[0..255] of char);
  7. 2 : (n : integer);
  8. 3 : (w : word; case j : integer of
  9. 1 : (t : array[0..255] of char);
  10. 2 : (a : integer);
  11. );
  12. end;
  13. pr = ^tr;
  14. var
  15. r : pr;
  16. begin
  17. new(r,3,2);
  18. if r^.i<>3 then
  19. halt(1);
  20. if r^.j<>2 then
  21. halt(1);
  22. dispose(r,3,2);
  23. writeln('ok');
  24. end.