* new delphi probs

This commit is contained in:
peter 2002-11-21 23:03:59 +00:00
parent d3533891fe
commit 51a3acb6fe
2 changed files with 41 additions and 0 deletions

28
tests/tbs/tb0422.pp Normal file
View File

@ -0,0 +1,28 @@
{$ifdef fpc}{$mode delphi}{$endif}
type
tcl = class
function f1 : tvarrec; virtual;
end;
var
f : function : tvarrec of object;
function tcl.f1 : tvarrec;
begin
fillchar(result,sizeof(result),0);
end;
procedure p1(v : tvarrec);
begin
end;
var
c : tcl;
begin
c:=tcl.create;
f:=c.f1;
p1(f);
end.

13
tests/tbs/tb0423.pp Normal file
View File

@ -0,0 +1,13 @@
{$ifdef fpc}{$mode delphi}{$endif}
type
tmethod = record
code,data : pointer;
end;
var
p : procedure(l : longint) of object;
begin
tmethod(p).data:=nil;
end.