view run/a/auto_19_B.d @ 1542:d8e1feb9e66e

[Issue 1152] Inline assembler: cannot use properties of types Matti Niemenmaa (Deewiant) <deewiant@gmail.com> 2007-05-31 http://d.puremagic.com/issues/show_bug.cgi?id=1152
author thomask
date Sun, 01 Jul 2007 13:19:07 +0000
parents f900501c0e18
children
line wrap: on
line source

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

// @author@	Bill Baxter <wbaxter@gmail.com>
// @date@	2007-02-22
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=999
// @desc@	[Issue 999] Problem with auto and nested array literals

module dstress.run.a.auto_19_B;

int main(){
	auto foo = [[3.0],[4.0]];

	if(2 != foo.length){
		assert(0);
	}
	if(1 != foo[0].length){
		assert(0);
	}
	if(3.0 != foo[0][0]){
		assert(0);
	}
	if(1 != foo[1].length){
		assert(0);
	}
	if(4.0 != foo[1][0]){
		assert(0);
	}
	return 0;
}