view run/t/template_51_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 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;
}