Mercurial > projects > dstress
comparison run/length_01.d @ 0:3269e4627918
init dstress
author | svnowner |
---|---|
date | Sat, 25 Sep 2004 22:33:30 +0000 |
parents | |
children | 3414705c41ac |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3269e4627918 |
---|---|
1 // $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/length_01.d,v 1.2 2004/09/22 23:25:38 th Exp $ | |
2 | |
3 int main(){ | |
4 byte[3] array; | |
5 array[0]=2; | |
6 array[1]=4; | |
7 array[2]=8; | |
8 int length=1; | |
9 assert(length-1==0); | |
10 assert(array[length-1]==8); | |
11 return 0; | |
12 } |