mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-07 20:29:28 +01:00
* new bugs
This commit is contained in:
parent
341775ee23
commit
37e8e2f992
18
tests/webtbf/tw2209.pp
Normal file
18
tests/webtbf/tw2209.pp
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{ %opt=-Sew }
|
||||||
|
{ %fail }
|
||||||
|
|
||||||
|
{ Source provided for Free Pascal Bug Report 2209 }
|
||||||
|
{ Submitted by "Erik Scheffers" on 2002-10-30 }
|
||||||
|
{ e-mail: eriks@win.tue.nl }
|
||||||
|
{$mode delphi}
|
||||||
|
program case_bug;
|
||||||
|
|
||||||
|
var uninitialized : integer;
|
||||||
|
|
||||||
|
begin
|
||||||
|
case (uninitialized) of
|
||||||
|
1 : writeln('it''s a one!');
|
||||||
|
else writeln('it''s something else...');
|
||||||
|
end
|
||||||
|
end.
|
||||||
|
|
||||||
20
tests/webtbs/tw2210.pp
Normal file
20
tests/webtbs/tw2210.pp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{ Source provided for Free Pascal Bug Report 2210 }
|
||||||
|
{ Submitted by "peter" on 2002-10-30 }
|
||||||
|
{ e-mail: peter@casltd.co.uk }
|
||||||
|
|
||||||
|
{$mode objfpc}
|
||||||
|
unit tw2210;
|
||||||
|
interface
|
||||||
|
implementation
|
||||||
|
type
|
||||||
|
tclass = class
|
||||||
|
function blah (p:integer) : boolean;
|
||||||
|
end;
|
||||||
|
|
||||||
|
function tclass.blah(p:integer):boolean;
|
||||||
|
begin
|
||||||
|
blah := true;
|
||||||
|
end;
|
||||||
|
|
||||||
|
end.
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user