view run/a/array_initialization_20_B.d @ 1489:b8c0195059d9

changed nntp: URLs to http: URLs
author thomask
date Mon, 09 Apr 2007 13:47:01 +0000
parents 03b5056496f1
children
line wrap: on
line source

// $HeadURL$
// $Date$
// $Author$

// @author@	Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
// @date@	2005-12-03
// @uri@	http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5731

module dstress.run.a.array_initialization_20_B;

typedef byte X = 4;

int main(){
	X[] array;
	array.length = 2;
	array[] = 3;
	array.length = 3;

	if(array[0] != 3){
		assert(0);
	}

	if(array[1] != 3){
		assert(0);
	}

	if(array[2] != 4){
		assert(0);
	}

	return 0;
}