Mercurial > projects > dstress
changeset 956:0cfa157e0782
<ericanderton@yahoo.com>
2006-04-08
news:bug-95-3@http.d.puremagic.com/bugzilla/
author | thomask |
---|---|
date | Sun, 09 Apr 2006 19:51:17 +0000 |
parents | e53c25fb5575 |
children | 9aaa845bab65 |
files | run/f/foreach_35_D.d |
diffstat | 1 files changed, 26 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /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@ <ericanderton@yahoo.com> +// @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; +} +