mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 19:05:54 +02:00
- removed overflow, so the test also works with constant propagation and -Co
git-svn-id: trunk@33201 -
This commit is contained in:
parent
38fd0efa3b
commit
70cd8f6e59
@ -1,12 +1,12 @@
|
||||
var x:uint64;
|
||||
y:longword;
|
||||
begin
|
||||
y:=123;
|
||||
y:=12;
|
||||
x:=y*uint64(10116239910488455739);
|
||||
if x<>8365656051540097625 then
|
||||
halt(1);
|
||||
x:=y*uint64($8000000000000000);
|
||||
if x<>(uint64(123) shl 63) then
|
||||
if x<>(uint64(12) shl 63) then
|
||||
halt(2);
|
||||
end.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user