annotate run/a/associative_array_24_A.d @ 1573:81b51faeeefe

[Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD <d@brian.codekitchen.net> 2007-04-27 http://d.puremagic.com/issues/show_bug.cgi?id=1191
author thomask
date Thu, 21 Feb 2008 15:19:08 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1573
81b51faeeefe [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
thomask
parents:
diff changeset
1 // $HeadURL$
81b51faeeefe [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
thomask
parents:
diff changeset
2 // $Date$
81b51faeeefe [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
thomask
parents:
diff changeset
3 // $Author$
81b51faeeefe [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
thomask
parents:
diff changeset
4
81b51faeeefe [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
thomask
parents:
diff changeset
5 // @author@ <d@brian.codekitchen.net>
81b51faeeefe [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
thomask
parents:
diff changeset
6 // @date@ 2007-04-27
81b51faeeefe [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
thomask
parents:
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1191
81b51faeeefe [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
thomask
parents:
diff changeset
8 // @desc@ [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
81b51faeeefe [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
thomask
parents:
diff changeset
9
81b51faeeefe [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
thomask
parents:
diff changeset
10 module dstress.run.a.associative_array_24_A;
81b51faeeefe [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
thomask
parents:
diff changeset
11
81b51faeeefe [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
thomask
parents:
diff changeset
12 int main(){
81b51faeeefe [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
thomask
parents:
diff changeset
13 int stuff[char[]][char[]];
81b51faeeefe [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
thomask
parents:
diff changeset
14 stuff["first"]["second"] = 5;
81b51faeeefe [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
thomask
parents:
diff changeset
15 if(1 != stuff.length){
81b51faeeefe [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
thomask
parents:
diff changeset
16 assert(0);
81b51faeeefe [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
thomask
parents:
diff changeset
17 }
81b51faeeefe [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
thomask
parents:
diff changeset
18 if(1 != stuff["first"].length){
81b51faeeefe [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
thomask
parents:
diff changeset
19 assert(0);
81b51faeeefe [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
thomask
parents:
diff changeset
20 }
81b51faeeefe [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
thomask
parents:
diff changeset
21 if(5 != stuff["first"]["second"]){
81b51faeeefe [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
thomask
parents:
diff changeset
22 assert(0);
81b51faeeefe [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
thomask
parents:
diff changeset
23 }
81b51faeeefe [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
thomask
parents:
diff changeset
24
81b51faeeefe [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
thomask
parents:
diff changeset
25 return 0;
81b51faeeefe [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
thomask
parents:
diff changeset
26 }