mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 21:07:57 +02:00
30 lines
374 B
ObjectPascal
30 lines
374 B
ObjectPascal
{$mode objfpc}{$H+}
|
|
|
|
uses
|
|
Classes, SysUtils;
|
|
|
|
var
|
|
err : boolean;
|
|
|
|
procedure Proc(var Buf);
|
|
begin
|
|
writeln('Proc(var Buf)');
|
|
end;
|
|
|
|
procedure Proc(Stream: TStream);
|
|
begin
|
|
writeln('Proc(Stream: TStream)');
|
|
err:=false;
|
|
end;
|
|
|
|
var
|
|
InputStream: TMemoryStream;
|
|
begin
|
|
err:=true;
|
|
InputStream:=TMemoryStream.Create;
|
|
Proc(InputStream);
|
|
if err then
|
|
halt(1);
|
|
end.
|
|
|