From 092153e7ad1b945eb5ab3796952b64e1c0e07ec9 Mon Sep 17 00:00:00 2001 From: florian Date: Wed, 10 Feb 2010 21:08:54 +0000 Subject: [PATCH] * handle unrolling of for ... downto ... correctly, resolves #15668 git-svn-id: trunk@14884 - --- .gitattributes | 1 + compiler/optloop.pas | 10 +++++++--- tests/webtbs/tw15668.pp | 16 ++++++++++++++++ 3 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 tests/webtbs/tw15668.pp diff --git a/.gitattributes b/.gitattributes index 0c05395d27..552eee0dad 100644 --- a/.gitattributes +++ b/.gitattributes @@ -10278,6 +10278,7 @@ tests/webtbs/tw15504.pp svneol=native#text/plain tests/webtbs/tw15530.pp svneol=native#text/pascal tests/webtbs/tw15607.pp svneol=native#text/plain tests/webtbs/tw15619.pp svneol=native#text/plain +tests/webtbs/tw15668.pp svneol=native#text/pascal tests/webtbs/tw1567.pp svneol=native#text/plain tests/webtbs/tw15690.pp svneol=native#text/plain tests/webtbs/tw15693.pp svneol=native#text/plain diff --git a/compiler/optloop.pas b/compiler/optloop.pas index c535f49585..5eb0228fb0 100644 --- a/compiler/optloop.pas +++ b/compiler/optloop.pas @@ -127,9 +127,13 @@ unit optloop; { for itself increases at the last iteration } if i