mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 12:49:33 +02:00
+ also check shr 0 and shl 0
This commit is contained in:
parent
168690c833
commit
ff2d3b7d06
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user