annotate run/f/foreach_35_D.d @ 1319:81222734adf3

sed'ed replacement of new:...http.d.puremagic.co... with http://d.puremagic.com/issues/show_bug.cgi?...
author thomask
date Sun, 31 Dec 2006 19:58:06 +0000
parents 9dcac8d4e97f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
956
0cfa157e0782 <ericanderton@yahoo.com>
thomask
parents:
diff changeset
1 // $HeadURL$
0cfa157e0782 <ericanderton@yahoo.com>
thomask
parents:
diff changeset
2 // $Date$
0cfa157e0782 <ericanderton@yahoo.com>
thomask
parents:
diff changeset
3 // $Author$
0cfa157e0782 <ericanderton@yahoo.com>
thomask
parents:
diff changeset
4
0cfa157e0782 <ericanderton@yahoo.com>
thomask
parents:
diff changeset
5 // @author@ <ericanderton@yahoo.com>
0cfa157e0782 <ericanderton@yahoo.com>
thomask
parents:
diff changeset
6 // @date@ 2006-04-08
1319
81222734adf3 sed'ed replacement of new:...http.d.puremagic.co... with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents: 1091
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=95
956
0cfa157e0782 <ericanderton@yahoo.com>
thomask
parents:
diff changeset
8
0cfa157e0782 <ericanderton@yahoo.com>
thomask
parents:
diff changeset
9 module dstress.run.f.foreach_35_D;
0cfa157e0782 <ericanderton@yahoo.com>
thomask
parents:
diff changeset
10
0cfa157e0782 <ericanderton@yahoo.com>
thomask
parents:
diff changeset
11 int main(){
0cfa157e0782 <ericanderton@yahoo.com>
thomask
parents:
diff changeset
12 int[int] array;
0cfa157e0782 <ericanderton@yahoo.com>
thomask
parents:
diff changeset
13 array[2] = 3;
0cfa157e0782 <ericanderton@yahoo.com>
thomask
parents:
diff changeset
14 array.remove(2);
1091
9dcac8d4e97f post DMD-0.163 review
thomask
parents: 956
diff changeset
15
956
0cfa157e0782 <ericanderton@yahoo.com>
thomask
parents:
diff changeset
16 if(array.keys.length != 0){
0cfa157e0782 <ericanderton@yahoo.com>
thomask
parents:
diff changeset
17 assert(0);
0cfa157e0782 <ericanderton@yahoo.com>
thomask
parents:
diff changeset
18 }
1091
9dcac8d4e97f post DMD-0.163 review
thomask
parents: 956
diff changeset
19
956
0cfa157e0782 <ericanderton@yahoo.com>
thomask
parents:
diff changeset
20 foreach(int elem; array){
0cfa157e0782 <ericanderton@yahoo.com>
thomask
parents:
diff changeset
21 assert(0);
0cfa157e0782 <ericanderton@yahoo.com>
thomask
parents:
diff changeset
22 }
0cfa157e0782 <ericanderton@yahoo.com>
thomask
parents:
diff changeset
23
0cfa157e0782 <ericanderton@yahoo.com>
thomask
parents:
diff changeset
24 return 0;
0cfa157e0782 <ericanderton@yahoo.com>
thomask
parents:
diff changeset
25 }
0cfa157e0782 <ericanderton@yahoo.com>
thomask
parents:
diff changeset
26