Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc-src / usr / share / fpcsrc / 3.2.0 / tests / tbs / tb0431.pp
Size: Mime:
{ the smallest falling test I ever found PM }
{ the code generated a shll #0,%edx on i386
  which was bad but harmless...
  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.