*** empty log message ***

This commit is contained in:
florian 2000-04-02 20:02:00 +00:00
parent ff5b72e3bd
commit a2e8fd9f07
4 changed files with 12 additions and 11 deletions

View File

@ -1,3 +1,6 @@
{$ifdef fpc}
{$mode tp}
{$endif fpc}
program test_set;
uses erroru;
@ -17,9 +20,7 @@ procedure test;
begin
for i:=1 to 32 do x[i]:=$ff;
i:=1;
if i in [1,3,5,8,11,14,15] then
writeln('1 is in [1,3,5,8,11,14,15]')
else
if not(i in [1,3,5,8,11,14,15]) then
begin
writeln('Error in set');
error;
@ -31,21 +32,21 @@ procedure test;
error;
end;
i:=257;
if i in [1,3,5,8,11,14,15] then
if not(i in [1,3,5,8,11,14,15]) then
begin
writeln('Error : 257 is in [1,3,5,8,11,14,15]');
writeln('Error : 257 isn''t in [1,3,5,8,11,14,15]');
error;
end;
l:=-1;
if l in [1,3,5,8,11,14,15,255] then
if not(l in [1,3,5,8,11,14,15,255]) then
begin
writeln('Error : -127 is in [1,3,5,8,11,14,15,255]');
writeln('Error : -1 isn''t in [1,3,5,8,11,14,15,255]');
error;
end;
i:=257;
if l in [1,3,5,8,11,14,15,255] then
if not(l in [1,3,5,8,11,14,15,255]) then
begin
writeln('Error : longint(257) is in [1,3,5,8,11,14,15,255]');
writeln('Error : longint(257) isn''t in [1,3,5,8,11,14,15,255]');
error;
end;
for i:=1 to 32 do x[i]:=0;

View File

@ -1,4 +1,4 @@
{$OPT=-Or}
{ $OPT=-Or}
{$minenumsize 1}
type

View File

@ -1,4 +1,4 @@
{$OPT=-Or}
{ $OPT=-Or}
{$maxfpuregisters 3}
uses
dotest;