tests: Add test for semantics of for-loop that optimisation can break.
tests: Add test for semantics of for-loop that optimisation can break.

dhylands/micropython,orionrobots/micropython,feilongfl/micropython,mhoffma/micropython,adafruit/micropython,pozetroninc/micropython,skybird6672/micropython,kostyll/micropython,dmazzella/micropython,vriera/micropython,jmarcelino/pycom-micropython,jlillest/micropython,xyb/micropython,infinnovation/micropython,neilh10/micropython,dxxb/micropython,KISSMonX/micropython,puuu/micropython,pramasoul/micropython,heisewangluo/micropython,micropython/micropython-esp32,SungEun-Steve-Kim/test-mp,tdautc19841202/micropython,cwyark/micropython,supergis/micropython,tuc-osg/micropython,tobbad/micropython,neilh10/micropython,oopy/micropython,infinnovation/micropython,Timmenem/micropython,danicampora/micropython,misterdanb/micropython,toolmacher/micropython,dmazzella/micropython,dhylands/micropython,pramasoul/micropython,jmarcelino/pycom-micropython,stonegithubs/micropython,martinribelotta/micropython,SHA2017-badge/micropython-esp32,firstval/micropython,hiway/micropython,emfcamp/micropython,adafruit/circuitpython,stonegithubs/micropython,KISSMonX/micropython,Vogtinator/micropython,emfcamp/micropython,ganshun666/micropython,EcmaXp/micropython,deshipu/micropython,cloudformdesign/micropython,turbinenreiter/micropython,mpalomer/micropython,hosaka/micropython,orionrobots/micropython,adamkh/micropython,tuc-osg/micropython,noahwilliamsson/micropython,trezor/micropython,galenhz/micropython,deshipu/micropython,heisewangluo/micropython,redbear/micropython,PappaPeppar/micropython,cnoviello/micropython,EcmaXp/micropython,torwag/micropython,HenrikSolver/micropython,suda/micropython,danicampora/micropython,noahwilliamsson/micropython,vitiral/micropython,adafruit/circuitpython,torwag/micropython,selste/micropython,puuu/micropython,blmorris/micropython,hosaka/micropython,martinribelotta/micropython,warner83/micropython,mgyenik/micropython,jlillest/micropython,misterdanb/micropython,warner83/micropython,omtinez/micropython,tobbad/micropython,ryannathans/micropython,firstval/micropython,noahchense/micropython,matthewelse/micropython,tralamazza/micropython,aethaniel/micropython,warner83/micropython,xhat/micropython,paul-xxx/micropython,alex-march/micropython,matthewelse/micropython,utopiaprince/micropython,aethaniel/micropython,drrk/micropython,EcmaXp/micropython,vriera/micropython,ryannathans/micropython,ganshun666/micropython,tralamazza/micropython,selste/micropython,redbear/micropython,kerneltask/micropython,galenhz/micropython,pfalcon/micropython,alex-march/micropython,emfcamp/micropython,adamkh/micropython,neilh10/micropython,adafruit/micropython,noahchense/micropython,Timmenem/micropython,heisewangluo/micropython,jlillest/micropython,blmorris/micropython,lowRISC/micropython,SHA2017-badge/micropython-esp32,trezor/micropython,micropython/micropython-esp32,blazewicz/micropython,dinau/micropython,mhoffma/micropython,HenrikSolver/micropython,AriZuu/micropython,HenrikSolver/micropython,drrk/micropython,cwyark/micropython,ganshun666/micropython,emfcamp/micropython,paul-xxx/micropython,lbattraw/micropython,ericsnowcurrently/micropython,SungEun-Steve-Kim/test-mp,jimkmc/micropython,dinau/micropython,dmazzella/micropython,xhat/micropython,xuxiaoxin/micropython,ernesto-g/micropython,kerneltask/micropython,ganshun666/micropython,ahotam/micropython,tobbad/micropython,ahotam/micropython,adafruit/circuitpython,ChuckM/micropython,tralamazza/micropython,Peetz0r/micropython-esp32,tralamazza/micropython,MrSurly/micropython-esp32,bvernoux/micropython,MrSurly/micropython,omtinez/micropython,deshipu/micropython,aethaniel/micropython,lowRISC/micropython,MrSurly/micropython-esp32,ChuckM/micropython,oopy/micropython,cloudformdesign/micropython,lbattraw/micropython,matthewelse/micropython,SungEun-Steve-Kim/test-mp,swegener/micropython,lbattraw/micropython,supergis/micropython,blazewicz/micropython,AriZuu/micropython,jlillest/micropython,henriknelson/micropython,MrSurly/micropython-esp32,ahotam/micropython,deshipu/micropython,bvernoux/micropython,TDAbboud/micropython,hiway/micropython,AriZuu/micropython,danicampora/micropython,neilh10/micropython,selste/micropython,turbinenreiter/micropython,tdautc19841202/micropython,mgyenik/micropython,ruffy91/micropython,trezor/micropython,kerneltask/micropython,vitiral/micropython,mpalomer/micropython,drrk/micropython,AriZuu/micropython,jmarcelino/pycom-micropython,firstval/micropython,utopiaprince/micropython,adafruit/micropython,cnoviello/micropython,alex-robbins/micropython,dxxb/micropython,mhoffma/micropython,dhylands/micropython,oopy/micropython,mianos/micropython,xyb/micropython,cloudformdesign/micropython,adamkh/micropython,blazewicz/micropython,tuc-osg/micropython,stonegithubs/micropython,SungEun-Steve-Kim/test-mp,toolmacher/micropython,kostyll/micropython,paul-xxx/micropython,EcmaXp/micropython,cwyark/micropython,dhylands/micropython,redbear/micropython,Peetz0r/micropython-esp32,adafruit/micropython,firstval/micropython,alex-march/micropython,cnoviello/micropython,ryannathans/micropython,kostyll/micropython,SHA2017-badge/micropython-esp32,stonegithubs/micropython,AriZuu/micropython,omtinez/micropython,PappaPeppar/micropython,ericsnowcurrently/micropython,pozetroninc/micropython,omtinez/micropython,tdautc19841202/micropython,feilongfl/micropython,hiway/micropython,EcmaXp/micropython,supergis/micropython,toolmacher/micropython,dxxb/micropython,kostyll/micropython,suda/micropython,ceramos/micropython,mgyenik/micropython,praemdonck/micropython,HenrikSolver/micropython,feilongfl/micropython,matthewelse/micropython,jlillest/micropython,jimkmc/micropython,swegener/micropython,SungEun-Steve-Kim/test-mp,SHA2017-badge/micropython-esp32,vriera/micropython,henriknelson/micropython,micropython/micropython-esp32,TDAbboud/micropython,pozetroninc/micropython,MrSurly/micropython,mpalomer/micropython,kerneltask/micropython,mianos/micropython,cloudformdesign/micropython,dinau/micropython,jmarcelino/pycom-micropython,heisewangluo/micropython,MrSurly/micropython,paul-xxx/micropython,mhoffma/micropython,omtinez/micropython,trezor/micropython,supergis/micropython,puuu/micropython,blazewicz/micropython,KISSMonX/micropython,TDAbboud/micropython,tuc-osg/micropython,misterdanb/micropython,lowRISC/micropython,deshipu/micropython,micropython/micropython-esp32,bvernoux/micropython,toolmacher/micropython,TDAbboud/micropython,jimkmc/micropython,rubencabrera/micropython,heisewangluo/micropython,MrSurly/micropython,ahotam/micropython,ceramos/micropython,skybird6672/micropython,ericsnowcurrently/micropython,vitiral/micropython,bvernoux/micropython,misterdanb/micropython,mianos/micropython,pfalcon/micropython,martinribelotta/micropython,jmarcelino/pycom-micropython,swegener/micropython,matthewelse/micropython,ChuckM/micropython,ruffy91/micropython,alex-march/micropython,martinribelotta/micropython,Peetz0r/micropython-esp32,turbinenreiter/micropython,hosaka/micropython,paul-xxx/micropython,ernesto-g/micropython,slzatz/micropython,HenrikSolver/micropython,vitiral/micropython,skybird6672/micropython,ganshun666/micropython,oopy/micropython,drrk/micropython,tobbad/micropython,rubencabrera/micropython,blazewicz/micropython,orionrobots/micropython,cloudformdesign/micropython,chrisdearman/micropython,noahwilliamsson/micropython,noahwilliamsson/micropython,galenhz/micropython,lbattraw/micropython,turbinenreiter/micropython,henriknelson/micropython,ceramos/micropython,Timmenem/micropython,turbinenreiter/micropython,PappaPeppar/micropython,vitiral/micropython,ruffy91/micropython,ceramos/micropython,PappaPeppar/micropython,rubencabrera/micropython,suda/micropython,stonegithubs/micropython,PappaPeppar/micropython,hiway/micropython,misterdanb/micropython,KISSMonX/micropython,noahchense/micropython,redbear/micropython,KISSMonX/micropython,feilongfl/micropython,alex-robbins/micropython,micropython/micropython-esp32,adamkh/micropython,cwyark/micropython,Vogtinator/micropython,adafruit/circuitpython,selste/micropython,utopiaprince/micropython,mpalomer/micropython,rubencabrera/micropython,ryannathans/micropython,henriknelson/micropython,galenhz/micropython,feilongfl/micropython,neilh10/micropython,praemdonck/micropython,mgyenik/micropython,pramasoul/micropython,skybird6672/micropython,slzatz/micropython,swegener/micropython,blmorris/micropython,praemdonck/micropython,matthewelse/micropython,adafruit/circuitpython,pramasoul/micropython,tdautc19841202/micropython,mpalomer/micropython,selste/micropython,pozetroninc/micropython,ryannathans/micropython,orionrobots/micropython,skybird6672/micropython,ernesto-g/micropython,alex-robbins/micropython,martinribelotta/micropython,emfcamp/micropython,dhylands/micropython,xyb/micropython,Vogtinator/micropython,rubencabrera/micropython,utopiaprince/micropython,lbattraw/micropython,danicampora/micropython,puuu/micropython,tuc-osg/micropython,Vogtinator/micropython,ruffy91/micropython,pozetroninc/micropython,chrisdearman/micropython,jimkmc/micropython,xyb/micropython,MrSurly/micropython-esp32,trezor/micropython,supergis/micropython,alex-robbins/micropython,utopiaprince/micropython,hosaka/micropython,mianos/micropython,alex-robbins/micropython,aethaniel/micropython,ruffy91/micropython,adafruit/micropython,lowRISC/micropython,ahotam/micropython,xhat/micropython,cnoviello/micropython,pramasoul/micropython,Timmenem/micropython,galenhz/micropython,slzatz/micropython,pfalcon/micropython,xyb/micropython,tdautc19841202/micropython,orionrobots/micropython,oopy/micropython,infinnovation/micropython,mhoffma/micropython,hosaka/micropython,adafruit/circuitpython,Peetz0r/micropython-esp32,noahchense/micropython,xuxiaoxin/micropython,vriera/micropython,dxxb/micropython,firstval/micropython,kerneltask/micropython,jimkmc/micropython,dinau/micropython,dxxb/micropython,swegener/micropython,xhat/micropython,ceramos/micropython,dmazzella/micropython,henriknelson/micropython,torwag/micropython,chrisdearman/micropython,slzatz/micropython,torwag/micropython,xuxiaoxin/micropython,ChuckM/micropython,praemdonck/micropython,suda/micropython,lowRISC/micropython,toolmacher/micropython,Timmenem/micropython,redbear/micropython,adamkh/micropython,ernesto-g/micropython,infinnovation/micropython,ChuckM/micropython,praemdonck/micropython,hiway/micropython,kostyll/micropython,cnoviello/micropython,xuxiaoxin/micropython,Vogtinator/micropython,aethaniel/micropython,pfalcon/micropython,slzatz/micropython,xhat/micropython,blmorris/micropython,alex-march/micropython,mgyenik/micropython,MrSurly/micropython,noahchense/micropython,xuxiaoxin/micropython,ernesto-g/micropython,TDAbboud/micropython,danicampora/micropython,tobbad/micropython,noahwilliamsson/micropython,vriera/micropython,chrisdearman/micropython,cwyark/micropython,drrk/micropython,Peetz0r/micropython-esp32,torwag/micropython,warner83/micropython,ericsnowcurrently/micropython,mianos/micropython,blmorris/micropython,chrisdearman/micropython,suda/micropython,puuu/micropython,MrSurly/micropython-esp32,warner83/micropython,pfalcon/micropython,bvernoux/micropython,dinau/micropython,SHA2017-badge/micropython-esp32,infinnovation/micropython,ericsnowcurrently/micropython