view run/c/cast_32_D.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 daef239f37cf
children
line wrap: on
line source

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

// @author@	Aziz Köksal <aziz.kerim@gmail.com>
// @date@	2006-10-08
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=407
// @desc@	[Issue 407] New: casting array literals to int causes compiler seg-fault

module dstress.run.c.cast_32_D;

int main(){
	if(! *cast(int*)cast(char[1])"0"c){
		assert(0);
	}

	return 0;
}