소스 검색

* 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.