fpc/tests/webtbs/tw28948.pp
Jonas Maebe 0e97811b50 + initialise managed string function results with an error string when
compiling with -gt (mantis #28948)

git-svn-id: trunk@33198 -
2016-03-06 17:22:11 +00:00

12 lines
139 B
ObjectPascal

{ %OPT=-gt }
function f: ansistring;
begin
end;
begin
writeln(f);
if pos('uninitialized function result',f)=0 then
halt(1);
end.