소스 검색

+ also check shr 0 and shl 0

pierre 22 년 전
부모
커밋
ff2d3b7d06
1개의 변경된 파일14개의 추가작업 그리고 0개의 파일을 삭제
  1. 14 0
      tests/tbs/tb0431.pp

+ 14 - 0
tests/tbs/tb0431.pp

@@ -4,9 +4,23 @@
   but on m68K it generated a asl.l #0,%d2
   which is not correct ... }
 
+const
+  has_errors : boolean = false;
 var
   x : longint;
 begin
   x:=5;
   x:=x*1;
+  if x<>5 then
+    has_errors:=true;
+  x:=5;
+  x:=x shl 0;
+  if x<>5 then
+    has_errors:=true;
+  x:=5;
+  x:=x shr 0;
+  if x<>5 then
+    has_errors:=true;
+  if has_errors then
+    halt(1);
 end.