tw1677.pp 703 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. { Source provided for Free Pascal Bug Report 1677 }
  2. { Submitted by "Anders Lindeberg" on 2001-11-10 }
  3. { e-mail: [email protected] }
  4. program test;
  5. type trec = record i:integer; s:ansistring end;
  6. procedure p1(const r:trec);
  7. begin
  8. end;
  9. procedure p2(r:trec);
  10. begin
  11. end;
  12. procedure p3(const a:ansistring);
  13. begin
  14. end;
  15. procedure p4(a:ansistring);
  16. begin
  17. end;
  18. var r:trec; s:ansistring;
  19. begin
  20. s:=chr(ord('A')+random(26));
  21. r.s:=s;
  22. writeln('init');
  23. if plongint(pointer(s)-4)^<>3 then
  24. halt(1);
  25. writeln('p1()');
  26. p1(r);
  27. if plongint(pointer(s)-4)^<>3 then
  28. halt(1);
  29. writeln('p2()');
  30. p2(r);
  31. if plongint(pointer(s)-4)^<>3 then
  32. halt(1);
  33. writeln('ok');
  34. end.