Kaynağa Gözat

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

Jonas Maebe 23 yıl önce
ebeveyn
işleme
07269c85d8
1 değiştirilmiş dosya ile 16 ekleme ve 0 silme
  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.