view nocompile/associative_array_05.d @ 1622:d402aa53926c

Add test for bug 3092 written by Manuel K?nig
author Leandro Lucarella <llucax@gmail.com>
date Tue, 19 Oct 2010 19:18:23 -0300
parents 52c9e86b6486
children
line wrap: on
line source

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

// @author@	Anders F Bj�klund <afb@algonet.se>
// @date@	2004-12-19
// @uri@	news://cq2h5u$2n99$1@digitaldaemon.com
// @uri@	nntp://digitalmars.com/digitalmars.D/13868

// __DSTRESS_ELINE__ 19

module dstress.nocompile.associative_array_05;

int main(){
	int[char[]] array;
	assert(array.length==0);
	array["eins"]=1;
	assert(array.length==1);
	array["zwei"];
	assert(array.length==1);
	return 0;
}