浏览代码

* runtime check added

peter 22 年之前
父节点
当前提交
b4f01df991
共有 1 个文件被更改,包括 9 次插入1 次删除
  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.