* new bugs

This commit is contained in:
peter 2003-11-12 15:51:19 +00:00
parent 30cbfd88d4
commit 6fe726cf7a
3 changed files with 51 additions and 0 deletions

26
tests/webtbf/tw2787.pp Normal file
View File

@ -0,0 +1,26 @@
{ %fail }
{$mode objfpc}
Type tClass1=Class
Public
Constructor Init;Virtual;
End;
Type tClass2=Class(tClass1)
Public
Constructor Init;Override;Virtual;Overload;
End;
Constructor tClass1.Init;
Begin
Inherited Create;
End;
Constructor tClass2.Init;
Begin
Inherited Init;
End;
Begin
End.

9
tests/webtbs/tw2788.pp Normal file
View File

@ -0,0 +1,9 @@
{$mode objfpc}
Type tLObject=Class;
Type tLObject=Class
End;
Begin
End.

16
tests/webtbs/tw2789.pp Normal file
View File

@ -0,0 +1,16 @@
{ %opt=-Sen }
Var B:Longint;
Procedure Stuff;
Var I:Longint;
Begin
Case B Of
0:For I:=1 To 100 Do WriteLn;
End;
End;
Begin
B:=0;
Stuff;
End.