fpc/tests/test/cg/tcnvint7.pp
Jonas Maebe b5b7e0f338 * ensure that 64->32 bit truncations cannot be optimized away by the
register allocator on AArch64 + test (did not get caught by existing
    tests)

git-svn-id: trunk@29965 -
2015-02-23 22:55:54 +00:00

17 lines
245 B
ObjectPascal

function f: qword;
begin
f:=$7111888800000001;
end;
begin
if qword(cardinal(f))<>1 then
halt(1);
if qword(longint(f))<>1 then
halt(2);
if int64(cardinal(f))<>1 then
halt(3);
if int64(longint(f))<>1 then
halt(4);
end.