mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 03:28:40 +02:00

case they are refcounted out-parameters and when using -gt (mantis #16757) git-svn-id: trunk@15479 -
27 lines
418 B
ObjectPascal
27 lines
418 B
ObjectPascal
{ %opt=-g-t }
|
|
program project1;
|
|
{$mode objfpc}{$H+}
|
|
|
|
uses Classes;
|
|
|
|
type
|
|
TBar = class
|
|
function foo(StockID: LongInt; out Image, Mask: Longint): Boolean;
|
|
end;
|
|
|
|
function TBar.foo(StockID: LongInt; out Image, Mask: Longint): Boolean;
|
|
begin
|
|
Result := False;
|
|
end;
|
|
|
|
var
|
|
a: array[0..10000] of longint;
|
|
i: longint;
|
|
x:TBar;
|
|
begin
|
|
x.foo(0,a[0],a[1]);
|
|
for i:=2 to high(a) do
|
|
if a[i]<>0 then
|
|
halt(1);
|
|
end.
|