Mercurial > projects > dstress
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 |
rev | line source |
---|---|
338 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Anders F Bj�klund <afb@algonet.se> | |
205 | 6 // @date@ 2004-12-19 |
7 // @uri@ news://cq2h5u$2n99$1@digitaldaemon.com | |
8 // @url@ nntp://digitalmars.com/digitalmars.D/13868 | |
9 | |
338 | 10 // __DSTRESS_ELINE__ 19 |
11 | |
205 | 12 module dstress.nocompile.associative_array_05; |
13 | |
14 int main(){ | |
15 int[char[]] array; | |
16 assert(array.length==0); | |
17 array["eins"]=1; | |
18 assert(array.length==1); | |
19 array["zwei"]; | |
20 assert(array.length==1); | |
21 return 0; | |
22 } | |
23 |