summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/webtbs/tw16622.pp
blob: 3ae5053672fa3207112b2313722b04e9d498134a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ %cpu=x86_64 }
{$asmmode intel}
procedure test;
var
  TestVar : Int64;
begin
  TestVar:=1234123412341234;
  asm
    MOV RAX,0
    LEA RBX,TestVar
    MOV QWORD [RBX],RAX
  end;
  writeln(TestVar);
  if TestVar<>0 then
    halt(1);
end;

begin
  test;
  writeln('ok');
end.