tb0028.pp 374 B

123456789101112131415161718192021
  1. { %FAIL }
  2. { Old file: tbf0157.pp }
  3. { Invalid compilation and also crashes OK 0.99.7 (PFV) }
  4. { this should be rejected because we only accept integer args }
  5. program write_it;
  6. var x,y:real;
  7. i : longint;
  8. s : string;
  9. begin
  10. x:=5.6;
  11. y:=45.789;
  12. write(y:2:3,' ',x:3:4);
  13. write(i:5);
  14. s:='short';
  15. write(s:11);
  16. write(i:5:2);
  17. write(s:25:3);
  18. write(x:5.2);
  19. end.