summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/webtbs/tw9327.pp
blob: 58e8c3a44e126fe8cc03ec5bce533867a5fcc597 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ %opt=-Cg- }
{ %cpu=i386 }

program fpcbug;

{$asmmode intel}

type
  TBla = record
    Bla: Cardinal;
  end;

var
  b: tbla;
begin
  asm
    lea edi, b
    mov eax, $12345678
    mov TBla(edi).&Bla, eax
  end;
  if b.bla<>$12345678 then
    halt(1);
end.