mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 02:59:33 +02:00
* new bugs
This commit is contained in:
parent
34e8266af4
commit
9abe8bf055
55
tests/webtbs/tw2045.pp
Normal file
55
tests/webtbs/tw2045.pp
Normal 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
18
tests/webtbs/tw2046.pp
Normal 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
12
tests/webtbs/tw2128.pp
Normal 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.
|
Loading…
Reference in New Issue
Block a user