annotate nocompile/associative_array_05.d @ 338:1f6cf5ccfbc9

1) updated rules to dmd-0.119 2) added __DSTRESS_ELINE__ tags
author thomask
date Mon, 21 Mar 2005 20:45:57 +0000
parents e3c5b1e6f4a3
children 52c9e86b6486
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
338
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 205
diff changeset
1 // $HeadURL$
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 205
diff changeset
2 // $Date$
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 205
diff changeset
3 // $Author$
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 205
diff changeset
4
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 205
diff changeset
5 // @author@ Anders F Bj�klund <afb@algonet.se>
205
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
6 // @date@ 2004-12-19
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
7 // @uri@ news://cq2h5u$2n99$1@digitaldaemon.com
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
8 // @url@ nntp://digitalmars.com/digitalmars.D/13868
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
9
338
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 205
diff changeset
10 // __DSTRESS_ELINE__ 19
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 205
diff changeset
11
205
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
12 module dstress.nocompile.associative_array_05;
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
13
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
14 int main(){
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
15 int[char[]] array;
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
16 assert(array.length==0);
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
17 array["eins"]=1;
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
18 assert(array.length==1);
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
19 array["zwei"];
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
20 assert(array.length==1);
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
21 return 0;
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
22 }
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
23