git-svn-id: trunk@8974 -
@@ -7598,6 +7598,7 @@ tests/webtbs/tw0961.pp svneol=native#text/plain
tests/webtbs/tw0965.pp svneol=native#text/plain
tests/webtbs/tw0966.pp svneol=native#text/plain
tests/webtbs/tw0976.pp svneol=native#text/plain
+tests/webtbs/tw10009.pp svneol=native#text/plain
tests/webtbs/tw10013.pp svneol=native#text/plain
tests/webtbs/tw1021.pp svneol=native#text/plain
tests/webtbs/tw1023.pp svneol=native#text/plain
@@ -153,7 +153,7 @@ implementation
if first then
begin
{ have we to ajust the first value ? }
- if (t^._low>get_min_value(left.resultdef)) then
+ if (t^._low>get_min_value(left.resultdef)) or (get_min_value(left.resultdef)<>0) then
tcgarm(cg).cgsetflags:=true;
cg.a_op_const_reg(current_asmdata.CurrAsmList, OP_SUB, opsize, aint(int64(t^._low)), hregister);
@@ -174,7 +174,7 @@ implementation
cg.a_op_const_reg(current_asmdata.CurrAsmList, OP_SUB, opsize, aint(t^._low.svalue), hregister);
end
else
@@ -532,7 +532,7 @@ implementation
gensub(aint(t^._low.svalue));
@@ -199,7 +199,7 @@ implementation
gensub(longint(int64(t^._low)));
@@ -0,0 +1,13 @@
+var
+ test : 2..14;
+
+begin
+ test:=14;
+ case test of
+ 2..9: halt(1);
+ 14: ;
+ else
+ halt(1);
+ end;
+ writeln('ok');
+end.