view run/bug_cg87_279_F.d @ 1531:640c34dfc7a5

updated to DMD-1.013
author thomask
date Fri, 27 Apr 2007 17:35:09 +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_279_F;

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

void bar(){
	return foo();
}

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