mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-06 02:08:18 +02:00
* new bugs
This commit is contained in:
parent
5fb06316f1
commit
b7cf110884
22
tests/webtbf/tw2721.pp
Normal file
22
tests/webtbf/tw2721.pp
Normal file
@ -0,0 +1,22 @@
|
||||
{ %fail }
|
||||
|
||||
{ Source provided for Free Pascal Bug Report 2721 }
|
||||
{ Submitted by "marcov" on 2003-10-07 }
|
||||
{ e-mail: }
|
||||
{$mode Delphi}
|
||||
|
||||
type
|
||||
TIntfPersistent = class
|
||||
public
|
||||
function _Release: Integer; virtual; cdecl;
|
||||
end;
|
||||
|
||||
t2 = class(Tintfpersistent)
|
||||
public
|
||||
function _Release: Integer; override; stdcall;
|
||||
end;
|
||||
|
||||
|
||||
begin
|
||||
end.
|
||||
|
32
tests/webtbs/tw2713.pp
Normal file
32
tests/webtbs/tw2713.pp
Normal file
@ -0,0 +1,32 @@
|
||||
{ Source provided for Free Pascal Bug Report 2713 }
|
||||
{ Submitted by "Wiktor Sywula" on 2003-10-05 }
|
||||
{ e-mail: wswiktor@poczta.fm }
|
||||
UNIT tw2713;
|
||||
|
||||
{$MODE OBJFPC}
|
||||
|
||||
INTERFACE
|
||||
|
||||
type trek=record
|
||||
a,b,c:word;
|
||||
end;
|
||||
|
||||
procedure rek(var r:trek; a,b,c:word);
|
||||
function rek(a,b,c:word):trek;
|
||||
|
||||
IMPLEMENTATION
|
||||
|
||||
procedure rek(var r:trek; a,b,c:word);
|
||||
begin
|
||||
r.a:=a;
|
||||
r.b:=b;
|
||||
r.c:=c;
|
||||
end;
|
||||
|
||||
function rek(a,b,c:word):trek;
|
||||
begin
|
||||
rek(rek,a,b,c);
|
||||
end;
|
||||
|
||||
|
||||
END.
|
19
tests/webtbs/tw2719.pp
Normal file
19
tests/webtbs/tw2719.pp
Normal file
@ -0,0 +1,19 @@
|
||||
{ Source provided for Free Pascal Bug Report 2719 }
|
||||
{ Submitted by "Samuel L.B." on 2003-10-06 }
|
||||
{ e-mail: NLBCHGPOHSXQ@spammotel.com }
|
||||
program A;
|
||||
|
||||
const
|
||||
cmConnect: Char = #1;
|
||||
cmDisconnect: Char = #2;
|
||||
|
||||
function GetCh(Id: Byte): Char;
|
||||
begin
|
||||
end;
|
||||
|
||||
begin
|
||||
case GetCh(1) of
|
||||
cmConnect: ;
|
||||
cmDisconnect: ;
|
||||
end;
|
||||
end.
|
20
tests/webtbs/tw2721.pp
Normal file
20
tests/webtbs/tw2721.pp
Normal file
@ -0,0 +1,20 @@
|
||||
{ Source provided for Free Pascal Bug Report 2721 }
|
||||
{ Submitted by "marcov" on 2003-10-07 }
|
||||
{ e-mail: }
|
||||
{$mode Delphi}
|
||||
|
||||
type
|
||||
TIntfPersistent = class
|
||||
public
|
||||
function _Release: Integer; virtual; cdecl;
|
||||
end;
|
||||
|
||||
t2 = class(Tintfpersistent)
|
||||
public
|
||||
function _Release: Integer; override;
|
||||
end;
|
||||
|
||||
|
||||
begin
|
||||
end.
|
||||
|
15
tests/webtbs/tw2723.pp
Normal file
15
tests/webtbs/tw2723.pp
Normal file
@ -0,0 +1,15 @@
|
||||
{ Source provided for Free Pascal Bug Report 2723 }
|
||||
{ Submitted by "marco" on 2003-10-07 }
|
||||
{ e-mail: }
|
||||
{$ifdef fpc}{$mode delphi}{$endif}
|
||||
function GetClassParent(AClass: TClass): TClass; assembler;
|
||||
asm
|
||||
MOV EAX, [AClass].vmtParent // line 1324
|
||||
TEST Result, EAX
|
||||
JE @@Exit
|
||||
MOV EAX, [EAX]
|
||||
@@Exit:
|
||||
end;
|
||||
|
||||
begin
|
||||
end.
|
Loading…
Reference in New Issue
Block a user