fpc/tests/webtbs/tw34385.pp
Jonas Maebe d1361ca6ed * fixed adjustments of lower/upper bounds in range test optimization in case
of strictly smaller/greater comparisons (mantis #34385)

git-svn-id: trunk@40344 -
2018-11-17 22:38:31 +00:00

24 lines
373 B
ObjectPascal

program rangeTest;
const
w : dword = 123;
n : dword = 48;
begin
if (w<=1) and (w>=10) then
begin
writeln('error 1-10');
halt(1);
end;
if (w>=1) and (w<=1000) then
writeln('ok')
else
begin
writeln('error 1-1000');
halt(2);
end;
if (n>44)and(n<48) then
begin
writeln('error 48');
halt(3);
end;
end.