fpc/tests/tbs/tb0483.pp
fpc 790a4fe2d3 * log and id tags removed
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00

31 lines
478 B
ObjectPascal

{$mode delphi}
{ this should be only allowed in delphi mode; it's a delphi bug }
uses
tb0483u;
type
tmyclass2 = class(tmyclass1)
procedure x(var l : longint);message 1234;
end;
procedure tmyclass2.x(var l : longint);
begin
inherited;
end;
var
myclass2 : tmyclass2;
l : longint;
begin
myclass2:=tmyclass2.create;
myclass2.x(l);
myclass2.free;
if testresult<>1 then
begin
writeln('error');
halt(1);
end;
writeln('ok');
end.