mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 22:28:06 +02:00
* new bugs
This commit is contained in:
parent
ed8d5479d6
commit
b645c2842e
15
tests/webtbf/tw2657.pp
Normal file
15
tests/webtbf/tw2657.pp
Normal file
@ -0,0 +1,15 @@
|
||||
{ %fail }
|
||||
|
||||
{ Source provided for Free Pascal Bug Report 2657 }
|
||||
{ Submitted by "Mazen NEIFER" on 2003-08-28 }
|
||||
{ e-mail: mazen.neifer.01@supaero.org }
|
||||
program test;
|
||||
type
|
||||
LongInt=record
|
||||
x,y:cardinal;
|
||||
end;
|
||||
var
|
||||
t:longint;
|
||||
begin
|
||||
t:=1;
|
||||
end.
|
13
tests/webtbs/tw2473.pp
Normal file
13
tests/webtbs/tw2473.pp
Normal file
@ -0,0 +1,13 @@
|
||||
{ Source provided for Free Pascal Bug Report 2473 }
|
||||
{ Submitted by "julien" on 2003-04-25 }
|
||||
{ e-mail: jfiiz@aol.com }
|
||||
|
||||
function afunc (line : ansistring; var i : qword) : qword;
|
||||
begin
|
||||
if (i>length(line[i])) then
|
||||
writeln('hello');
|
||||
afunc:=0;
|
||||
end;
|
||||
|
||||
begin
|
||||
end.
|
12
tests/webtbs/tw2650.pp
Normal file
12
tests/webtbs/tw2650.pp
Normal file
@ -0,0 +1,12 @@
|
||||
{ Source provided for Free Pascal Bug Report 2650 }
|
||||
{ Submitted by "marcov" on 2003-08-21 }
|
||||
{ e-mail: marco@freepascal.org }
|
||||
|
||||
{$mode Delphi}
|
||||
|
||||
type someclass=class
|
||||
property integer :integer;
|
||||
end;
|
||||
|
||||
begin
|
||||
end.
|
18
tests/webtbs/tw2651.pp
Normal file
18
tests/webtbs/tw2651.pp
Normal file
@ -0,0 +1,18 @@
|
||||
{ %version=1.1 }
|
||||
|
||||
{ Source provided for Free Pascal Bug Report 2651 }
|
||||
{ Submitted by "Sergey Kosarevsky" on 2003-08-23 }
|
||||
{ e-mail: netsurfer@au.ru }
|
||||
{$mode objfpc}
|
||||
|
||||
Type tMyClass=Class
|
||||
Class Procedure InlineProc;Inline;
|
||||
End;
|
||||
|
||||
Class Procedure tmyClass.InlineProc;Inline;
|
||||
Begin
|
||||
End;
|
||||
|
||||
Begin
|
||||
tMyClass.InlineProc;
|
||||
End.
|
16
tests/webtbs/tw2656.pp
Normal file
16
tests/webtbs/tw2656.pp
Normal file
@ -0,0 +1,16 @@
|
||||
{ Source provided for Free Pascal Bug Report 2656 }
|
||||
{ Submitted by "marco" on 2003-08-27 }
|
||||
{ e-mail: marco@freepascal.org }
|
||||
{$ifdef fpc}{$mode Delphi}{$endif}
|
||||
var p1,p2 : pchar;
|
||||
a,b,c : longint;
|
||||
|
||||
begin
|
||||
|
||||
c:=a+(p1-p2)+3; // fpc accepts this. Delphi ?
|
||||
|
||||
// vs
|
||||
|
||||
c:=a+p1-p2+3; // delphi accepts this, fpc not.
|
||||
|
||||
end.
|
14
tests/webtbs/tw2659.pp
Normal file
14
tests/webtbs/tw2659.pp
Normal file
@ -0,0 +1,14 @@
|
||||
{ Source provided for Free Pascal Bug Report 2659 }
|
||||
{ Submitted by "Tomas Hajny" on 2003-08-31 }
|
||||
{ e-mail: hajny@freepascal.org }
|
||||
{ If the X- is removed then it compiles OK }
|
||||
|
||||
{$X-}
|
||||
|
||||
procedure Test (S: string);
|
||||
begin
|
||||
end;
|
||||
|
||||
begin
|
||||
Test (Copy ('A', 1, 1));
|
||||
end.
|
11
tests/webtbs/tw2666.pp
Normal file
11
tests/webtbs/tw2666.pp
Normal file
@ -0,0 +1,11 @@
|
||||
{ Source provided for Free Pascal Bug Report 2666 }
|
||||
{ Submitted by "marcov" on 2003-09-06 }
|
||||
{ e-mail: marco@freepascal.org }
|
||||
function GetDynamicMethod(AClass: TClass; Index: Integer): Pointer; assembler;
|
||||
asm
|
||||
CALL System.@Halt
|
||||
end;
|
||||
|
||||
begin
|
||||
GetDynamicMethod(nil,0);
|
||||
end.
|
14
tests/webtbs/tw2730.pp
Normal file
14
tests/webtbs/tw2730.pp
Normal file
@ -0,0 +1,14 @@
|
||||
{ %version=1.1 }
|
||||
|
||||
{ Source provided for Free Pascal Bug Report 2730 }
|
||||
{ Submitted by "marco (the gory bugs department)" on 2003-10-10 }
|
||||
{ e-mail: }
|
||||
{$mode delphi}
|
||||
unit tw2730;
|
||||
|
||||
interface
|
||||
const bla= widechar(#0);
|
||||
implementation
|
||||
|
||||
begin
|
||||
end.
|
6
tests/webtbs/tw2731.pp
Normal file
6
tests/webtbs/tw2731.pp
Normal file
@ -0,0 +1,6 @@
|
||||
{ Source provided for Free Pascal Bug Report 2731 }
|
||||
{ Submitted by "Wiktor Sywula" on 2003-10-10 }
|
||||
{ e-mail: wswiktor@poczta.fm }
|
||||
uses uw2731;
|
||||
begin
|
||||
end.
|
22
tests/webtbs/tw2736.pp
Normal file
22
tests/webtbs/tw2736.pp
Normal file
@ -0,0 +1,22 @@
|
||||
{ Source provided for Free Pascal Bug Report 2736 }
|
||||
{ Submitted by "Johannes Berg" on 2003-10-13 }
|
||||
{ e-mail: bugs@johannes.sipsolutions.de }
|
||||
program test;
|
||||
{$MODE delphi}
|
||||
|
||||
type
|
||||
TTest1 = class
|
||||
FA: Integer;
|
||||
private
|
||||
property a: Integer read FA write FA;
|
||||
end;
|
||||
TTest2 = class(TTest1)
|
||||
procedure b(a: Integer);
|
||||
end;
|
||||
|
||||
procedure TTest2.b(a: Integer);
|
||||
begin
|
||||
end;
|
||||
|
||||
begin
|
||||
end.
|
22
tests/webtbs/tw2737.pp
Normal file
22
tests/webtbs/tw2737.pp
Normal file
@ -0,0 +1,22 @@
|
||||
{ Source provided for Free Pascal Bug Report 2737 }
|
||||
{ Submitted by "Johannes Berg" on 2003-10-13 }
|
||||
{ e-mail: bugs@johannes.sipsolutions.de }
|
||||
program test;
|
||||
{$MODE delphi}
|
||||
|
||||
type
|
||||
TTest1 = class
|
||||
FA: Integer;
|
||||
property a: Integer read FA write FA;
|
||||
end;
|
||||
TTest2 = class(TTest1)
|
||||
procedure b(aa: Integer);
|
||||
end;
|
||||
|
||||
procedure TTest2.b(aa: Integer);
|
||||
var a: Integer;
|
||||
begin
|
||||
end;
|
||||
|
||||
begin
|
||||
end.
|
22
tests/webtbs/tw2738.pp
Normal file
22
tests/webtbs/tw2738.pp
Normal file
@ -0,0 +1,22 @@
|
||||
{ %recompile }
|
||||
|
||||
{ Source provided for Free Pascal Bug Report 2738 }
|
||||
{ Submitted by "marco" on 2003-10-14 }
|
||||
{ e-mail: }
|
||||
Program test87;
|
||||
{$mode Delphi}
|
||||
|
||||
|
||||
Uses uw2738;
|
||||
|
||||
procedure blaat;
|
||||
|
||||
var
|
||||
SaveExMask: T8087Exceptions;
|
||||
begin
|
||||
SetMasked8087Exceptions(SaveExMask);
|
||||
end;
|
||||
|
||||
begin
|
||||
end.
|
||||
|
12
tests/webtbs/uw2731.pp
Normal file
12
tests/webtbs/uw2731.pp
Normal file
@ -0,0 +1,12 @@
|
||||
{ Source provided for Free Pascal Bug Report 2731 }
|
||||
{ Submitted by "Wiktor Sywula" on 2003-10-10 }
|
||||
{ e-mail: wswiktor@poczta.fm }
|
||||
unit uw2731;
|
||||
|
||||
interface
|
||||
implementation
|
||||
initialization
|
||||
writeln('Hello world');
|
||||
finalization
|
||||
writeln('Bye world');
|
||||
end.
|
24
tests/webtbs/uw2738.pp
Normal file
24
tests/webtbs/uw2738.pp
Normal file
@ -0,0 +1,24 @@
|
||||
unit uw2738;
|
||||
|
||||
{$mode Delphi}
|
||||
interface
|
||||
|
||||
Type
|
||||
T8087Exception = (emInvalidOp, emDenormalizedOperand, emZeroDivide, emOverflow,
|
||||
emUnderflow, emPrecision);
|
||||
T8087Exceptions = set of T8087Exception;
|
||||
|
||||
|
||||
function SetMasked8087Exceptions(Exceptions: T8087Exceptions; ClearBefore: Boolean = True): T8087Exceptions;
|
||||
|
||||
implementation
|
||||
|
||||
function SetMasked8087Exceptions(Exceptions: T8087Exceptions; ClearBefore: Boolean): T8087Exceptions;
|
||||
|
||||
begin
|
||||
writeln('blaat called me');
|
||||
end;
|
||||
|
||||
end.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user