* new bugs

This commit is contained in:
peter 2002-11-27 02:38:09 +00:00
parent 34e8266af4
commit 9abe8bf055
3 changed files with 85 additions and 0 deletions

55
tests/webtbs/tw2045.pp Normal file
View File

@ -0,0 +1,55 @@
{ Source provided for Free Pascal Bug Report 2045 }
{ Submitted by "Eero Tanskanen" on 2002-07-16 }
{ e-mail: yendor@nic.fi }
Unit tw2045;
Interface
Type
TCoords = Object
X, Y, Z: Real;
End;
PEmpty = ^TEmpty;
TEmpty = Object
End;
PBugger = ^TBugger;
TBugger = Object
A : TCoords;
B : TCoords;
C : TCoords;
Empty : PEmpty;
Function DoInternalError : PBugger;
End;
Implementation
Function CallForBug(A, B, C, D, E, F, G, H, I : Real) : PEmpty;
Begin
End;
Function TBugger.DoInternalError : PBugger;
Var
TempEmpty : PEmpty;
Begin
DoInternalError := Nil;
TEmpEmpty := CallForBug(DoInternalError^.A.X, DoInternalError^.A.Y, DoInternalError^.A.Z,
DoInternalError^.B.X, DoInternalError^.B.Y, DoInternalError^.B.Z,
DoInternalError^.C.X, DoInternalError^.C.Y, DoInternalError^.C.Z);
End;
Begin
End.

18
tests/webtbs/tw2046.pp Normal file
View File

@ -0,0 +1,18 @@
{ Source provided for Free Pascal Bug Report 2046 }
{ Submitted by "Mattias Gaertner" on 2002-07-17 }
{ e-mail: nc-gaertnma@netcologne.de }
program printftest;
{$mode objfpc}{$H+}
procedure printf(fm: pchar; args: array of const); cdecl; external 'c';
procedure print(args: array of const);
begin
printf('a number %i'#13#10,args);
end;
begin
print([3333]);
end.

12
tests/webtbs/tw2128.pp Normal file
View File

@ -0,0 +1,12 @@
{ Source provided for Free Pascal Bug Report 2128 }
{ Submitted by "Bill Rayer" on 2002-09-18 }
{ e-mail: lingolanguage@hotmail.com }
{
Excessive 64-bit literal causes the FPC compiler to crash.
}
var
c : comp;
begin
c := -9223372036854775809;
end.