view compile/o/odd_bug_16_A.d @ 1505:b0e88ac8bc7e

[Issue 1145] bad codegen with ulong+float Carlos Santander B. <csantander619@gmail.com> 2007-04-14 http://d.puremagic.com/issues/show_bug.cgi?id=1145
author thomask
date Mon, 23 Apr 2007 18:02:31 +0000
parents
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.compile.o.odd_bug_16_A;

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

static assert(foo()==1176576510);