Browse Source

* improve test

florian 10 months ago
parent
commit
e7cf7538cd
1 changed files with 3 additions and 1 deletions
  1. 3 1
      tests/webtbs/tw40936.pp

+ 3 - 1
tests/webtbs/tw40936.pp

@@ -1,10 +1,12 @@
-{ %norun }
 var
 var
   b: boolean;
   b: boolean;
   w: word;
   w: word;
 
 
 begin
 begin
+  w := $2;
   b := (w shr 1) <> 0;
   b := (w shr 1) <> 0;
   w := w shl 1; // project1.lpr(7,3) Error: Asm: 16 or 32 bit references not supported
   w := w shl 1; // project1.lpr(7,3) Error: Asm: 16 or 32 bit references not supported
   if b then w := w xor 1;
   if b then w := w xor 1;
+  if w<>5 then
+    halt(1);
 end.
 end.