tw0896.pp 302 B

1234567891011121314151617
  1. { %FAIL }
  2. var
  3. dat : file;
  4. j : longint;
  5. Buffer : Array[0..2047] of byte;
  6. begin
  7. for j:=0 to 2047 do
  8. Buffer[j]:=j and $ff;
  9. Assign(dat,'tbug896.tmp');
  10. Rewrite(dat,1);
  11. for j:= 0 to 2047 do
  12. { write should not be allowed for untyped files }
  13. write (dat,Buffer[j]);
  14. Close(dat);
  15. end.