* new bugs

This commit is contained in:
peter 2002-04-16 16:06:59 +00:00
parent cbbf448f7b
commit bb80969622
11 changed files with 133 additions and 0 deletions

18
tests/tbf/tb0121.pp Normal file
View File

@ -0,0 +1,18 @@
{ %fail }
{$mode objfpc}
type
TFPMemberVisibility = (
visAutomated := 'A',
visPublished := 'B',
visPrivate := 'I',
visProtected := 'O',
visPublic := 'U',
visDefault := 'd');
TFPArray = array[TFPMemberVisibility] of String;
begin
end.

11
tests/tbs/tb0395.pp Normal file
View File

@ -0,0 +1,11 @@
type
dummyrec = record
i : int64;
end;
var
d: double;
begin
d := double(dummyrec($ffffffff80000000));
end.

3
tests/webtbf/tw1927.pp Normal file
View File

@ -0,0 +1,3 @@
{ %fail }
Procedure Bug(B::tBug);

8
tests/webtbf/tw1928.pp Normal file
View File

@ -0,0 +1,8 @@
{ %fail }
type
tmethod = procedure (x: byte);
begin
tmethod(get_static_method)(0);
end.

26
tests/webtbs/tw1909.pp Normal file
View File

@ -0,0 +1,26 @@
{$mode objfpc}
var
global_u8bit : byte;
value_u8bit : byte;
procedure proc_value_smallarray_const_1_inline(arr : array of const);inline;
var
i: integer;
begin
for i:=0 to high(arr) do
begin
case arr[i].vtype of
vtInteger : global_u8bit := arr[i].vinteger and $ff;
else
RunError(255);
end;
end; {endfor}
end;
begin
proc_value_smallarray_const_1_inline([value_u8bit]);
end.

19
tests/webtbs/tw1910.pp Normal file
View File

@ -0,0 +1,19 @@
type
tprocedure = procedure;
procedure testprocedure;
begin
end;
procedure proc(const buf);
var
p : tprocedure;
begin
p:=tprocedure(@buf);
end;
begin
proc(testprocedure);
end.

7
tests/webtbs/tw1920.pp Normal file
View File

@ -0,0 +1,7 @@
{ %ver=1.1 }
VAR
X64 : Qword;
BEGIN
X64:=$123456789A;
END.

17
tests/webtbs/tw1923.pp Normal file
View File

@ -0,0 +1,17 @@
{$mode delphi}
type
parent = class
end;
child = class
procedure test;
end;
procedure child.test;
begin
inherited;
end;
begin
end.

1
tests/webtbs/tw1927.pp Normal file
View File

@ -0,0 +1 @@
Procedure Bug(B::tBug);

5
tests/webtbs/tw1930.pp Normal file
View File

@ -0,0 +1,5 @@
type
tprocedure = procedure (x: byte);pascal;
begin
end.

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

@ -0,0 +1,18 @@
Unit tw1931;
Interface
Const
Space = #32;
Tab = #9;
Cr = #13;
Lf = #10;
CrLf = #13#10;
Slash = '/';
Dash = '-';
Comma = ',';
Implementation
End {-- UChar --}.