view run/t/template_51_H.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_H;

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

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

	return 0;
}