view run/t/template_51_B.d @ 1597:8b9d4d2f925a

Fix typos in complex tests. See D bug 614.
author Christian Kamm <kamm incasoftware de>
date Tue, 09 Sep 2008 16:53:58 +0200
parents bb541d535405
children
line wrap: on
line source

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

// @author@	David Friedman <dvdfrdmn@users.sf.net>
// @date@	2006-12-23
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=731
// @desc@	[Issue 731] New: Positive and negative NaN in template arguments causes link conflict

module dstress.run.t.template_51_B;

template T(float v){
	const float T = v;
}

int main(){
	float g = T!(float.nan) + T!(-float.nan);
	if(g != float.nan - float.nan){
		assert(0);
	}

	return 0;
}