fpc/tests/tbf/tb0126.pp
2002-10-05 15:21:36 +00:00

25 lines
457 B
ObjectPascal

{ %fail }
{ This program should fail compilation, since
the declaration is not the same as the actual
implementation, checked against Delphi 3 -
the class keyword is missing in front
of procedure tmyclass.myproc
}
{$ifdef fpc}
{$mode objfpc}
{$endif}
type
tmyclass = class
class procedure myproc;virtual;
end;
{ missing class keyword in front of procedure }
procedure tmyclass.myproc;
begin
end;
Begin
end.