log
graph
tags
bookmarks
branches
changeset
browse
file
latest
diff
comparison
annotate
file log
raw
help
Mercurial
>
projects
>
dstress
annotate run/length_05.d @ 304:
472d7e8b2274
Find changesets by keywords (author, files, the commit message), revision number or hash, or
revset expression
.
added array[$] tests
author
thomask
date
Sat, 12 Mar 2005 13:50:46 +0000
parents
children
Ignore whitespace changes -
Everywhere:
Within whitespace:
At end of lines:
rev
line source
304
472d7e8b2274
added array[$] tests
thomask
parents:
diff
changeset
1
// $HeadURL$
472d7e8b2274
added array[$] tests
thomask
parents:
diff
changeset
2
// $Date$
472d7e8b2274
added array[$] tests
thomask
parents:
diff
changeset
3
// $Author$
472d7e8b2274
added array[$] tests
thomask
parents:
diff
changeset
4
472d7e8b2274
added array[$] tests
thomask
parents:
diff
changeset
5
module dstress.run.length_05;
472d7e8b2274
added array[$] tests
thomask
parents:
diff
changeset
6
472d7e8b2274
added array[$] tests
thomask
parents:
diff
changeset
7
int main(){
472d7e8b2274
added array[$] tests
thomask
parents:
diff
changeset
8
int[] array;
472d7e8b2274
added array[$] tests
thomask
parents:
diff
changeset
9
array.length=3;
472d7e8b2274
added array[$] tests
thomask
parents:
diff
changeset
10
array[0]=0;
472d7e8b2274
added array[$] tests
thomask
parents:
diff
changeset
11
array[1]=2;
472d7e8b2274
added array[$] tests
thomask
parents:
diff
changeset
12
array[2]=0;
472d7e8b2274
added array[$] tests
thomask
parents:
diff
changeset
13
assert(array[$-2]==2);
472d7e8b2274
added array[$] tests
thomask
parents:
diff
changeset
14
return 0;
472d7e8b2274
added array[$] tests
thomask
parents:
diff
changeset
15
}