tprec11.pp 468 B

1234567891011121314151617181920212223242526
  1. { from gpc testsuite, original name: waldek9b.pas }
  2. {$ifdef fpc}
  3. {$mode macpas}
  4. {$endif}
  5. program rrr(Output);
  6. type tr = record end;
  7. tp = packed record
  8. i : tr;
  9. end;
  10. var a : array [0..15] of tp;
  11. pa : packed array [0..15] of tp;
  12. begin
  13. pack (a, 0, pa);
  14. if sizeof(a) <> 0 then
  15. halt(1);
  16. if (sizeof(pa) <> 0) then
  17. halt(2);
  18. if (sizeof(tr) <> 0) then
  19. halt(3);
  20. if (sizeof(tp) <> 0) then
  21. halt(4);
  22. WriteLn ('OK')
  23. end.