fpc/tests/webtbs/tw29891.pp
Jonas Maebe 44682f9f4d * ensure that if we create a temp for the funcretnode in a call node,
the funcretnode field keeps a reference to this temp even after we
    assign it to the call-by-reference return parameter if it is deleted
    by changing it into a normal temp (after which it will be freed when
    the result of the call node is used), because in that case getcopy
    for the callnode must copy this reference after copying the
    tempdeletenode in order to reset tempinfo^.hookoncopy (mantis #29891)

git-svn-id: trunk@33569 -
2016-04-28 20:33:12 +00:00

27 lines
356 B
ObjectPascal

{ %NORUN }
program tinterr;
{$mode objfpc}{$H+}
type
TALVector3f = array[0..2] of Single;
function alGetSource3f: TALVector3f;
begin
end;
function VectorToNiceStr(const v: array of Single): string;
begin
end;
function SampleSourceState:string;
begin
result := 'POSITION : '+ VectorToNiceStr(alGetSource3f) + LineEnding;
end;
begin
end.