annotate run/associative_array_17.d @ 1489:b8c0195059d9

changed nntp: URLs to http: URLs
author thomask
date Mon, 09 Apr 2007 13:47:01 +0000
parents 2e7e260384a4
children ec5e144583ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
370
2e7e260384a4 AAs with float index
thomask
parents:
diff changeset
1 // $HeadURL$
2e7e260384a4 AAs with float index
thomask
parents:
diff changeset
2 // $Date$
2e7e260384a4 AAs with float index
thomask
parents:
diff changeset
3 // $Author$
2e7e260384a4 AAs with float index
thomask
parents:
diff changeset
4
2e7e260384a4 AAs with float index
thomask
parents:
diff changeset
5 // @author@ Ben Hinkle <ben.hinkle@gmail.com>
2e7e260384a4 AAs with float index
thomask
parents:
diff changeset
6 // @date@ 2005-03-25
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 370
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3356
370
2e7e260384a4 AAs with float index
thomask
parents:
diff changeset
8
2e7e260384a4 AAs with float index
thomask
parents:
diff changeset
9 module dstress.run.associative_array_17;
2e7e260384a4 AAs with float index
thomask
parents:
diff changeset
10
2e7e260384a4 AAs with float index
thomask
parents:
diff changeset
11 int main() {
2e7e260384a4 AAs with float index
thomask
parents:
diff changeset
12 int[ireal] x;
2e7e260384a4 AAs with float index
thomask
parents:
diff changeset
13 ireal d=22i;
2e7e260384a4 AAs with float index
thomask
parents:
diff changeset
14 x[d] = 44;
2e7e260384a4 AAs with float index
thomask
parents:
diff changeset
15 assert( x[d] == 44 );
2e7e260384a4 AAs with float index
thomask
parents:
diff changeset
16 return 0;
2e7e260384a4 AAs with float index
thomask
parents:
diff changeset
17 }