annotate run/length_05.d @ 1599:d37b19f7e8bb

Move run/c/case_01 to nocompile.
author Christian Kamm <kamm incasoftware de>
date Tue, 09 Sep 2008 17:28:31 +0200
parents 472d7e8b2274
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 }