* new bugs

This commit is contained in:
peter 2005-02-11 15:39:08 +00:00
parent a823a15888
commit 7c944ee49e
3 changed files with 46 additions and 2 deletions

20
tests/webtbf/tw3643.pp Normal file
View File

@ -0,0 +1,20 @@
{ %fail }
{ %opt=-Sew }
{ Source provided for Free Pascal Bug Report 3643 }
{ Submitted by "Naj Kejah" on 2005-02-08 }
{ e-mail: universario@hotmail.com }
type
recDep = record
cuec, cuek: byte
end;
var
Dep1Rec : recDep;
BEGIN
WITH Dep1Rec DO
begin
if cuek = 4 then ;
if cuek = 4 then ;
end;
END.

View File

@ -1,11 +1,17 @@
{ Source provided for Free Pascal Bug Report 3628 }
{ Submitted by "rimga" on 2005-02-03 }
{ e-mail: rimga@ktl.mii.lt }
{$ifdef fpc}
{$mode delphi}
{$else}
type
ptrint = longint;
{$endif}
var
s: string='12223445';
begin
s:=string(@s[3]); //internal error 200410231
WriteLn(ptrint(@s[3])); //runtime error 203
s:=string(@s[3]);
WriteLn(ptrint(@s));
WriteLn(ptrint(@s[3]));
end.

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

@ -0,0 +1,18 @@
{ Source provided for Free Pascal Bug Report 3644 }
{ Submitted by "Nicola Lugato" on 2005-02-10 }
{ e-mail: }
{$mode delphi}
procedure callme(y:array of const);
begin
end;
procedure callme2(x:array of const);
begin
callme([x]);
end;
begin
callme([1,2,'ciao']);
end.