view run/c/cfloat_11_A.d @ 1586:a74f0139fc3d

Fix tests using typeof on types.
author Christian Kamm <kamm incasoftware de>
date Thu, 21 Aug 2008 15:42:21 +0200
parents e6887749b811
children
line wrap: on
line source

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

// @author@	Thomas Kühne <thomas-doop@kuehne.cn>
// @date@	2006-11-19
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=575
// @desc@	[Issue 575] New: wrong evaluation of (creal * 2 + 1i)

module dstress.run.c.cfloat_11_A;

cfloat foo(cfloat a){
	return a * 2.0f + 1.0fi;
}

int main(){
	if(foo(1.0f + 2.0fi) != 2.0f + 5.0fi){
		assert(0);
	}
	return 0;
}