# HG changeset patch # User thomask # Date 1144612277 0 # Node ID 0cfa157e078262b4e61baa0f57f2afb0de610486 # Parent e53c25fb5575b3e523bb9bd5bb4b26ed6d01aff4 2006-04-08 news:bug-95-3@http.d.puremagic.com/bugzilla/ diff -r e53c25fb5575 -r 0cfa157e0782 run/f/foreach_35_D.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/f/foreach_35_D.d Sun Apr 09 19:51:17 2006 +0000 @@ -0,0 +1,26 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ +// @date@ 2006-04-08 +// @uri@ news:bug-95-3@http.d.puremagic.com/bugzilla/ + +module dstress.run.f.foreach_35_D; + +int main(){ + int[int] array; + array[2] = 3; + array.remove(2); + + if(array.keys.length != 0){ + assert(0); + } + + foreach(int elem; array){ + assert(0); + } + + return 0; +} +