浏览代码

+ test for getting the address of virtual methods of a class

Jonas Maebe 23 年之前
父节点
当前提交
07269c85d8
共有 1 个文件被更改,包括 16 次插入0 次删除
  1. 16 0
      tests/tbs/tb0403.pp

+ 16 - 0
tests/tbs/tb0403.pp

@@ -0,0 +1,16 @@
+{$mode objfpc}
+
+type
+  tclass = class
+    procedure t; virtual;
+  end;
+
+procedure tclass.t;
+begin
+end;
+
+var
+  p: pointer;
+begin
+  p := @tclass.t;
+end.