peter %!s(int64=22) %!d(string=hai) anos
pai
achega
9d0f27ffdc
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      tests/webtbs/tw1923.pp

+ 6 - 1
tests/webtbs/tw1923.pp

@@ -1,4 +1,4 @@
-{$mode delphi}
+{$ifdef fpc}{$mode delphi}{$endif}
 
 type
 parent = class
@@ -13,5 +13,10 @@ begin
 inherited;
 end;
 
+var
+  o : child;
 begin
+  o:=child.create;
+  o.test;
+  o.free;
 end.