view run/a/auto_19_B.d @ 1630:d0efa3ae5522 default tip

run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author David Nadlinger <code@klickverbot.at>
date Sat, 23 Apr 2011 22:57:32 +0200
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;
}