mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 10:45:08 +02:00
parent
95c69a64ad
commit
71d268db32
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -7757,6 +7757,7 @@ tests/webtbf/tw10457.pp svneol=native#text/plain
|
||||
tests/webtbf/tw10833a.pp svneol=native#text/plain
|
||||
tests/webtbf/tw10849.pp svneol=native#text/plain
|
||||
tests/webtbf/tw10890a.pp svneol=native#text/plain
|
||||
tests/webtbf/tw10998a.pp svneol=native#text/plain
|
||||
tests/webtbf/tw1157a.pp svneol=native#text/plain
|
||||
tests/webtbf/tw1238.pp svneol=native#text/plain
|
||||
tests/webtbf/tw1251a.pp svneol=native#text/plain
|
||||
|
21
tests/webtbf/tw10998a.pp
Normal file
21
tests/webtbf/tw10998a.pp
Normal file
@ -0,0 +1,21 @@
|
||||
{ %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.
|
Loading…
Reference in New Issue
Block a user