annotate run/array_initialization_05.d @ 1489:b8c0195059d9
changed nntp: URLs to http: URLs
author |
thomask |
date |
Mon, 09 Apr 2007 13:47:01 +0000 |
parents |
a1dc98dd4ad2 |
children |
ec5e144583ea |
rev |
line source |
331
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Jarrett Billingsley <kb3ctd2@yahoo.com>
|
|
6 // @date@ 2005-02-28
|
1489
|
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3062
|
331
|
8
|
|
9 module dstress.run.array_initialization_05;
|
|
10
|
|
11 int main(){
|
|
12 int[] a;
|
|
13 a.length=2;
|
|
14 a[0]=5;
|
|
15 a[1]=10;
|
|
16 int[] b=a.init;
|
|
17 assert(b.length==0);
|
|
18 return 0;
|
|
19 }
|
|
20
|