tb0127.pp 363 B

1234567891011121314151617
  1. { Old file: tbs0146.pp }
  2. { no sizeof() for var arrays and the size is pushed incorrect OK 0.99.7 (PFV) }
  3. procedure myfunction(var t : array of char);
  4. begin
  5. writeln(sizeof(t)); { should be 51 }
  6. if sizeof(t)<>51 then halt(1);
  7. end;
  8. var
  9. mycharstring : array[0..50] of char;
  10. begin
  11. myfunction(mycharstring);
  12. if sizeof(mycharstring)<>51 then halt(1);
  13. end.