Browse Source

+ extra test for #10998

git-svn-id: trunk@10877 -
Jonas Maebe 17 years ago
parent
commit
71d268db32
2 changed files with 22 additions and 0 deletions
  1. 1 0
      .gitattributes
  2. 21 0
      tests/webtbf/tw10998a.pp

+ 1 - 0
.gitattributes

@@ -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 - 0
tests/webtbf/tw10998a.pp

@@ -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.