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 / webtbs / tw29620.pp
Size: Mime:
{ %opt=-OoNOCONSTPROP }
{ This test explicity checks results
  of qword multiplication for which overflow happens.
  Thus, we need an explicit $Q- }

{$Q-}

var x:uint64;
    y:longword;
begin
 y:=12;
 x:=y*uint64(10116239910488455739);
 if x<>10714414483604159172 then
   halt(1);
 x:=y*uint64($8000000000000000);
 if x<>(uint64(12) shl 63) then
   halt(2);
end.