view run/bug_cg87_279_G.d @ 1601:90bc51a580b7

pragma(lib, ...) is only allowed in declarations as of 1.037.
author Christian Kamm <kamm incasoftware de>
date Sun, 04 Jan 2009 22:42:52 +0100
parents ec5e144583ea
children
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_G;

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

void bar(){
	return foo();
}

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