view run/bug_cg87_2393_D.d @ 1536:89775df1607d

vtable can't be used as a template parameter
author thomask
date Mon, 07 May 2007 05:20:25 +0000
parents b8c0195059d9
children ec5e144583ea
line wrap: on
line source

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

// @author@	Tom S <h3r3tic@remove.mat.uni.torun.pl>
// @date@	2005-03-27
// @uri@	http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3363

module dstress.run.bug_cg87_2393_D;

cfloat x;
    
void foo(){
	x = -x;
}

void bar(){
	return foo();
}

int main(){
	x = 2 + 0i;
	bar();
	assert(x==-2);
	return 0;
}