mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-23 13:31:43 +02:00
* new bug
This commit is contained in:
parent
b24c0ad3a6
commit
d90b585569
42
tests/webtbf/tw1633.pp
Normal file
42
tests/webtbf/tw1633.pp
Normal file
@ -0,0 +1,42 @@
|
||||
{ %fail }
|
||||
|
||||
{$ifdef fpc}
|
||||
{$mode delphi}
|
||||
{$asmmode intel}
|
||||
{$endif}
|
||||
|
||||
type tscreen = class
|
||||
x : Cardinal;
|
||||
end;
|
||||
type ttestobj = class
|
||||
screen : tscreen;
|
||||
constructor create;
|
||||
function testasmcall : tscreen;
|
||||
end;
|
||||
|
||||
var
|
||||
testobj : ttestobj;
|
||||
|
||||
constructor ttestobj.create;
|
||||
begin
|
||||
asm
|
||||
mov screen.x,0
|
||||
end;
|
||||
end;
|
||||
|
||||
function ttestobj.testasmcall : tscreen;
|
||||
begin
|
||||
asm
|
||||
mov screen.x, 0
|
||||
ADD screen.x, 1
|
||||
end;
|
||||
result := screen;
|
||||
end;
|
||||
|
||||
|
||||
begin
|
||||
testobj := ttestobj.create;
|
||||
testobj.testasmcall;
|
||||
testobj.destroy;
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user