Mercurial > projects > dstress
view run/s/scope_18_C.d @ 1615:8d5c55d163fd
Fix some outdated tests that used auto to mean scope.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 12 Jul 2009 16:44:52 +0200 |
parents | d0ab95b04926 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Thomas Kühne <thomas-dloop@kuehne.cn> // @date@ 2007-01-07 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=815 // @desc@ [Issue 815] scope(exit) isn't executed when "continue" is used to continue a while-loop module dstress.run.s.scope_18_C; int main(){ int[] log; int i = 3; while(i--){ scope(failure){ log ~= 0xEE; } log ~= i; if(i % 2){ continue; } log ~= 0xFF; } if([2, 0xFF, 1, 0, 0xFF] != log){ assert(0); } return 0; }