Mercurial > projects > dstress
comparison run/array_initialization_05.d @ 1559:ec5e144583ea
D1 -> D2 : 1/N
author | thomask |
---|---|
date | Sun, 19 Aug 2007 19:11:54 +0000 |
parents | b8c0195059d9 |
children |
comparison
equal
deleted
inserted
replaced
1558:d40d75fcd5c5 | 1559:ec5e144583ea |
---|---|
12 int[] a; | 12 int[] a; |
13 a.length=2; | 13 a.length=2; |
14 a[0]=5; | 14 a[0]=5; |
15 a[1]=10; | 15 a[1]=10; |
16 int[] b=a.init; | 16 int[] b=a.init; |
17 assert(b.length==0); | 17 |
18 if(0 != b.length){ | |
19 assert(0); | |
20 } | |
18 return 0; | 21 return 0; |
19 } | 22 } |
20 | 23 |