fpc/tests/webtbf/tw10998a.pp
Jonas Maebe 71d268db32 + extra test for #10998
git-svn-id: trunk@10877 -
2008-05-04 12:45:10 +00:00

22 lines
290 B
ObjectPascal

{ %fail }
program statictest;
{$mode delphi}{$STATIC ON}
type
TMyClass = class
public
class procedure StaticCall; static;
end;
class procedure TMyClass.StaticCall;
begin
WriteLn('Static method was called!');
writeln(ptruint(self));
end;
begin
TMyClass.StaticCall;
end.