view run/o/odd_bug_16_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 b0e88ac8bc7e
children
line wrap: on
line source

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

// @author@	Carlos Santander B. <csantander619@gmail.com>
// @date@	2007-04-14
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1145
// @desc@	[Issue 1145] bad codegen with ulong+float

module dstress.run.o.odd_bug_16_B;

ulong foo (){
	return cast(ulong) (1176576512UL + -2.0f);
}

int main(){
	if(foo() != 1176576510){
		assert(0);
	}
	return 0;
}