fpc/tests/webtbs/tw4239.pp
florian 7be36096f0 + proper init rtti for proc. vars
git-svn-id: trunk@1479 -
2005-10-18 20:05:56 +00:00

22 lines
372 B
ObjectPascal

{ Source provided for Free Pascal Bug Report 4239 }
{ Submitted by "Lars" on 2005-07-30 }
{ e-mail: L@z505.com }
program Project1;
{$mode objfpc}{$H+}
var
MyProc: array of procedure(s:string);
procedure testing(s:string);
begin
writeln(s);
end;
begin
setlength(myproc,1);
MyProc[0]:=@testing;
MyProc[0]('Test me');
readln; //watch for error on close
end.