This commit is contained in:
peter 2004-12-06 15:55:59 +00:00
parent feac9d0e2b
commit d4f0a5fc08
3 changed files with 51 additions and 0 deletions

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

@ -0,0 +1,19 @@
uses uw3429;
var
ok : byte;
begin
if v=7 then
begin
ok:=ok or 1;
writeln('ok1');
end;
if v='7' then
begin
ok:=ok or 2;
writeln('ok2');
end;
writeln(v);
if ok<>3 then
halt(1);
end.

21
tests/webtbs/tw3433.pp Normal file
View File

@ -0,0 +1,21 @@
{ Source provided for Free Pascal Bug Report 3433 }
{ Submitted by "Mattias Gaertner" on 2004-12-06 }
{ e-mail: mattias@freepascal.org }
program CompareFunctionTypes;
{$mode objfpc}{$H+}
uses
Classes, SysUtils;
type
TMyFunction = function(Item: Pointer): integer of object;
procedure DoSomething(const Func1, Func2: TMyFunction);
begin
if Func1=Func2 then exit;
end;
begin
DoSomething(nil,nil);
end.

11
tests/webtbs/uw3429.pp Normal file
View File

@ -0,0 +1,11 @@
{ Source provided for Free Pascal Bug Report 3429 }
{ Submitted by "Danny Milosavljevic" on 2004-12-05 }
{ e-mail: danny_milo@yahoo.com }
unit uw3429;
interface
var
v: Variant;
implementation
begin
v := 7;
end.