outpara.pp 355 B

12345678910111213141516171819202122232425262728
  1. {$mode objfpc}
  2. {$modeswitch unicodestrings}
  3. unit outpara;
  4. interface
  5. procedure test(out l: string);
  6. procedure main(args: array of string);
  7. implementation
  8. procedure test(out l: string);
  9. begin
  10. l:='abc';
  11. end;
  12. procedure main(args: array of string);
  13. var
  14. x: string;
  15. begin
  16. test(x);
  17. if x<>'abc' then
  18. raise jlexception.Create('wrong')
  19. end;
  20. end.