view undefined/default_argument_11_C.d @ 1543:9597b1b8030f

[Issue 1151] Final template class w/ constructor and invariant causes compile error <dhaffey@gmail.com> 2007-05-31 http://d.puremagic.com/issues/show_bug.cgi?id=1151
author thomask
date Sun, 01 Jul 2007 13:19:50 +0000
parents 549bdf42bf7d
children
line wrap: on
line source

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

// @author@	Unknown W. Brackets <unknown@simplemachines.org>
// @date@	2006-02-19
// @uri@	news:dtb7ee$gjq$1@digitaldaemon.com

module dstress.undefined.default_argument_11_C;

int x;

void test(out int i = x){
	assert(i == 5);
}

int main(){
	int i;
	test(i);

	assert(i == 5);

	return 0;
}