fpc/tests/webtbs/tw13318.pp
Jonas Maebe 6f4637b32a * do not do anything when writing to a t(custom)memorystream if the current
position is negative (patch by Collin Western, mantis #13318)

git-svn-id: trunk@12955 -
2009-03-22 15:53:16 +00:00

20 lines
230 B
ObjectPascal

program fpctest4;
{$ifdef fpc}
{$mode delphi}
{$endif fpc}
uses
Classes;
var
f:TStream;
l: longint;
begin
l:=1;
f:=TMemoryStream.Create;
f.position:=-1;
if (f.write(l,4)<>0) then
halt(1);
f.free;
end.