bug0245.pp 286 B

1234567891011121314151617181920212223242526
  1. const
  2. r = 3.5;
  3. s = 'test idiot';
  4. type
  5. preal = ^real;
  6. pstring = ^string;
  7. procedure ss;
  8. begin
  9. end;
  10. var
  11. p : pointer;
  12. pr : preal;
  13. ps : pstring;
  14. begin
  15. p:=@ss;
  16. p:=@s;
  17. pr:=@r;
  18. ps:=@s;
  19. pr^:=7.8;
  20. ps^:='test3';
  21. Writeln('r=',r,' s=',s);
  22. end.