fpc/tests/webtbf/tw22665b.pp
Jonas Maebe 17c495595c * made variable public so got warning gets triggered
git-svn-id: trunk@22244 -
2012-08-25 21:32:38 +00:00

23 lines
328 B
ObjectPascal

{ %skiptarget=win64 }
{ %cpu=x86_64 }
{ %opt=-vw -Sew }
{ %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.