fpc/tests/tbs/tb0564.pp
Jonas Maebe 125b9e79d7 * fixed an error with trashing (-gt) of open shortstring "out" parameters
causing crashes if strings with a maximum length < 255 were passed

git-svn-id: trunk@13558 -
2009-08-19 20:24:32 +00:00

25 lines
225 B
ObjectPascal

{ %opt=-gttt }
{$mode objfpc}
procedure get(out s: string);
begin
end;
procedure test;
var
s: string[1];
a,b: byte;
begin
a:=1;
b:=2;
get(s);
if (a<>1) or
(b<>2) then
halt(1);
end;
begin
test;
end.