view run/t/template_58_D.d @ 1467:c41d70e10b6f

[Issue 993] No constant folding for template value default arguments Don Clugston <clugdbug@yahoo.com.au> 2007-02-02 http://d.puremagic.com/issues/show_bug.cgi?id=993
author thomask
date Thu, 05 Apr 2007 16:33:20 +0000
parents
children
line wrap: on
line source

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

// @author@	Don Clugston <clugdbug@yahoo.com.au>
// @date@	2007-02-02
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=993
// @desc@	[Issue 993] No constant folding for template value default arguments

module dstress.run.t.template_58_D;

int a(int b = 7 * 2)(){
	return b + 1; 
}

int main() {
	if(15 != a()){
		assert(0);
	}
	return 0;
}