mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 12:49:33 +02:00
+ tbug735 tbug760
This commit is contained in:
parent
dc85d5b496
commit
1c7d0390cc
26
tests/webtbs/tbug735.pp
Normal file
26
tests/webtbs/tbug735.pp
Normal file
@ -0,0 +1,26 @@
|
||||
{$asmmode intel}
|
||||
|
||||
procedure DoIt;
|
||||
begin
|
||||
Writeln('DoIt was called');
|
||||
end;
|
||||
|
||||
const
|
||||
CB : word = 5;
|
||||
|
||||
procedure A(B: word); assembler; inline;
|
||||
asm
|
||||
MOV AX,B
|
||||
CMP AX,[CB]
|
||||
JZ @OK
|
||||
CLI
|
||||
MOV [CB],AX
|
||||
STI
|
||||
CALL DoIt
|
||||
@OK: { <-- creates labels with same name }
|
||||
end;
|
||||
|
||||
begin
|
||||
A(5);
|
||||
A(8);
|
||||
end.
|
32
tests/webtbs/tbug760.pp
Normal file
32
tests/webtbs/tbug760.pp
Normal file
@ -0,0 +1,32 @@
|
||||
type TElement = object
|
||||
constructor Init;
|
||||
{something}
|
||||
destructor Free; virtual;
|
||||
destructor Done; virtual;
|
||||
end;
|
||||
|
||||
constructor TElement.Init;
|
||||
begin
|
||||
Writeln('Init called');
|
||||
end;
|
||||
|
||||
destructor TElement.free;
|
||||
begin
|
||||
Writeln('Free used');
|
||||
end;
|
||||
|
||||
destructor TElement.Done;
|
||||
begin
|
||||
Writeln('Done used');
|
||||
end;
|
||||
|
||||
var
|
||||
E : TElement;
|
||||
PE : ^TElement;
|
||||
|
||||
begin
|
||||
E.init;
|
||||
E.Free;
|
||||
new(PE,init);
|
||||
dispose(PE,Done);
|
||||
end.
|
Loading…
Reference in New Issue
Block a user