Explorar el Código

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

Jonas Maebe hace 23 años
padre
commit
07269c85d8
Se han modificado 1 ficheros con 16 adiciones y 0 borrados
  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.