fpc/tests/webtbf/tw22665b.pp
florian cbec395907 * test needs -Cg to trigger the warning
git-svn-id: trunk@47661 -
2020-12-01 21:54:45 +00:00

23 lines
332 B
ObjectPascal

{ %skiptarget=win64 }
{ %cpu=x86_64 }
{ %opt=-vw -Sew -Cg }
{ %fail }
{$asmmode intel}
var
val: qword; public;
Function Test: QWord; Assembler; NoStackFrame;
Asm
{ global symbols must be accessed via the GOT on non-win64 }
mov RAX, [RIP+val]
End;
BEGIN
Val := $12345678901;
if test<>$12345678901 then
halt(1);
END.