mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-24 23:40:31 +01:00
* new bugs
This commit is contained in:
parent
d2cc0fa55a
commit
99cfbbb225
19
tests/webtbs/tw2767.pp
Normal file
19
tests/webtbs/tw2767.pp
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{ Source provided for Free Pascal Bug Report 2767 }
|
||||||
|
{ Submitted by "Jakub Cernohorsky" on 2003-11-06 }
|
||||||
|
{ e-mail: cernoj@fit.vutbr.cz }
|
||||||
|
var a:integer;
|
||||||
|
err:boolean;
|
||||||
|
begin
|
||||||
|
a:=25;
|
||||||
|
case a of
|
||||||
|
-10..0:writeln('-10..0');
|
||||||
|
31:writeln('31');
|
||||||
|
32..38:begin
|
||||||
|
writeln('32-38');
|
||||||
|
err:=true;
|
||||||
|
end;
|
||||||
|
66:writeln('66');
|
||||||
|
end;
|
||||||
|
if err then
|
||||||
|
halt(1);
|
||||||
|
end.
|
||||||
15
tests/webtbs/tw2772.pp
Normal file
15
tests/webtbs/tw2772.pp
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{ Source provided for Free Pascal Bug Report 2772 }
|
||||||
|
{ Submitted by "Sergey Kosarevsky" on 2003-11-08 }
|
||||||
|
{ e-mail: netsurfer@au.ru }
|
||||||
|
Type tWriteFlags=(WF_OVERWRITE,
|
||||||
|
WF_NOOVERWRITE,
|
||||||
|
WF_APPEND);
|
||||||
|
|
||||||
|
Type tFileWritingFlags=Set Of tWriteFlags;
|
||||||
|
|
||||||
|
Var A:tFileWritingFlags;
|
||||||
|
|
||||||
|
Begin
|
||||||
|
A:=[WF_OVERWRITE,WF_NOOVERWRITE,WF_APPEND];
|
||||||
|
WriteLn(WF_OVERWRITE In A);
|
||||||
|
End.
|
||||||
12
tests/webtbs/tw2776.pp
Normal file
12
tests/webtbs/tw2776.pp
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{ Source provided for Free Pascal Bug Report 2776 }
|
||||||
|
{ Submitted by "Vincent Snijders" on 2003-11-09 }
|
||||||
|
{ e-mail: vslist@zonnet.nl }
|
||||||
|
{$mode delphi}
|
||||||
|
var
|
||||||
|
a: procedure of object;
|
||||||
|
|
||||||
|
begin
|
||||||
|
a:=nil;
|
||||||
|
if assigned(a)
|
||||||
|
then ;
|
||||||
|
end.
|
||||||
24
tests/webtbs/tw2778.pp
Normal file
24
tests/webtbs/tw2778.pp
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{ Source provided for Free Pascal Bug Report 2778 }
|
||||||
|
{ Submitted by "Michael Van Canneyt" on 2003-11-09 }
|
||||||
|
{ e-mail: michael.vancanneyt@wisa.be }
|
||||||
|
|
||||||
|
{$mode delphi}
|
||||||
|
|
||||||
|
type
|
||||||
|
TMyFunc = Procedure (I : Integer = 10);
|
||||||
|
|
||||||
|
Procedure MyRealFunc(I : Integer = 20);
|
||||||
|
|
||||||
|
begin
|
||||||
|
Writeln('Function received : ',I);
|
||||||
|
if i<>10 then
|
||||||
|
halt(1);
|
||||||
|
end;
|
||||||
|
|
||||||
|
Var
|
||||||
|
M : TMyFunc;
|
||||||
|
|
||||||
|
begin
|
||||||
|
M:=@MyRealFunc;
|
||||||
|
M;
|
||||||
|
end.
|
||||||
10
tests/webtbs/tw2779.pp
Normal file
10
tests/webtbs/tw2779.pp
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{ Source provided for Free Pascal Bug Report 2779 }
|
||||||
|
{ Submitted by "Johannes Berg" on 2003-11-10 }
|
||||||
|
{ e-mail: bugs@johannes.sipsolutions.de }
|
||||||
|
program test;
|
||||||
|
|
||||||
|
{$IF DEFINED(asdf)}
|
||||||
|
{$IFEND}
|
||||||
|
|
||||||
|
begin
|
||||||
|
end.
|
||||||
20
tests/webtbs/tw2780.pp
Normal file
20
tests/webtbs/tw2780.pp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{ Source provided for Free Pascal Bug Report 2780 }
|
||||||
|
{ Submitted by "Johannes Berg" on 2003-11-10 }
|
||||||
|
{ e-mail: bugs@johannes.sipsolutions.de }
|
||||||
|
program ifdef;
|
||||||
|
|
||||||
|
const
|
||||||
|
a = 1;
|
||||||
|
|
||||||
|
begin
|
||||||
|
{$IF NOT DECLARED(a)}
|
||||||
|
writeln('a not declared');
|
||||||
|
{$ELSE}
|
||||||
|
writeln('a declared, a = ',a);
|
||||||
|
{$ENDIF}
|
||||||
|
{$IF NOT DECLARED(b)}
|
||||||
|
writeln('b not declared');
|
||||||
|
{$ELSE}
|
||||||
|
writeln('b declared, b = ',b);
|
||||||
|
{$ENDIF}
|
||||||
|
end.
|
||||||
Loading…
Reference in New Issue
Block a user