view run/o/opCatAssign_21_A.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 2ff35944af8e
children
line wrap: on
line source

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

// @author@	Bill Baxter <wbaxter@gmail.com>
// @date@	2006-12-25
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=748
// @desc@	[Issue 748] internal error with mixed static / dynamic array

module dstress.run.o.opCatAssign_21_A;

int main(){
	int[2][] a;
	a ~= [3, 4];
	if(a.length != 1){
		assert(0);
	}
	if(a[0].length != 2){
		assert(0);
	}
	if(a[0][0] != 3){
		assert(0);
	}
	if(a[0][1] != 4){
		assert(0);
	}

	return 0;
}