mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-24 00:33:52 +02:00
test for bug #1404
This commit is contained in:
parent
d03c26640b
commit
6e1b6dfa71
29
tests/webtbs/tw1404.pp
Normal file
29
tests/webtbs/tw1404.pp
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
program test_assembler;
|
||||||
|
|
||||||
|
procedure test_att;
|
||||||
|
begin
|
||||||
|
{$asmmode att}
|
||||||
|
asm
|
||||||
|
ret
|
||||||
|
lret
|
||||||
|
iret
|
||||||
|
iretw
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure test_intel;
|
||||||
|
begin
|
||||||
|
{$asmmode intel}
|
||||||
|
asm
|
||||||
|
ret
|
||||||
|
retf
|
||||||
|
retn
|
||||||
|
iret
|
||||||
|
iretd
|
||||||
|
iretw
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
|
begin
|
||||||
|
Writeln('This is just to test special assembler instructions');
|
||||||
|
end.
|
Loading…
Reference in New Issue
Block a user