view run/n/new_28_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 37c81d3385b7
children
line wrap: on
line source

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

// @author@	Frits van Bommel <fvbommel@wxs.nl>
// @date@	2006-12-28
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=765
// @desc@	[Issue 765] ArrayBoundsError when assigning slice of pointer

module dstress.run.n.new_28_A;

int main(){
	uint* x = (new uint[5]).ptr;

	x[0 .. 0] = 1;

	if(*x != 0){
		assert(0);
	}

	return 0;
}