mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 17:47:56 +02:00
*** empty log message ***
This commit is contained in:
parent
ff5b72e3bd
commit
a2e8fd9f07
@ -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;
|
||||
|
@ -1,4 +1,4 @@
|
||||
{$OPT=-Or}
|
||||
{ $OPT=-Or}
|
||||
{$minenumsize 1}
|
||||
|
||||
type
|
||||
|
@ -1,4 +1,4 @@
|
||||
{$OPT=-Or}
|
||||
{ $OPT=-Or}
|
||||
{$maxfpuregisters 3}
|
||||
uses
|
||||
dotest;
|
||||
|
Loading…
Reference in New Issue
Block a user