Explorar o código

* runtime check added

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

+ 9 - 1
tests/webtbs/tw2317.pp

@@ -13,7 +13,15 @@ Begin
    Exit(TypeOf(Self));
 End;
 
+var
+  l : longint;
 Begin
-   WriteLn(Longint(tObject.GetVMT()));
+   l:=Longint(tObject.GetVMT());
+   WriteLn('self in static: ',l);
+   if l<>0 then
+    begin
+      writeln('Error!');
+      halt(1);
+    end;
 End.