mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 06:19:32 +02:00
20 lines
198 B
ObjectPascal
20 lines
198 B
ObjectPascal
{$ASMMODE ATT}
|
|
|
|
type
|
|
tobj=object
|
|
l : longint;
|
|
end;
|
|
var
|
|
t : tobj;
|
|
|
|
procedure kl;assembler;
|
|
asm
|
|
movl tobj.l,%eax // tobj.l should return the offset of l in tobj
|
|
end;
|
|
|
|
|
|
begin
|
|
end.
|
|
|
|
|