mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 11:09:13 +02:00
new bugs
This commit is contained in:
parent
feac9d0e2b
commit
d4f0a5fc08
19
tests/webtbs/tw3429.pp
Normal file
19
tests/webtbs/tw3429.pp
Normal 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
21
tests/webtbs/tw3433.pp
Normal 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
11
tests/webtbs/uw3429.pp
Normal 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.
|
Loading…
Reference in New Issue
Block a user