view run/debug_03.d @ 84:91feffeeafa6

used the new ?DSTRESS_FLAGS? support to 1) simpilfy some complex tests 2) extend command_line_debug and command_line_version tests
author thomask
date Fri, 29 Oct 2004 21:04:52 +0000
parents
children 659bb018c489
line wrap: on
line source

// §DSTRESS_FLAGS§ -debug=a

module dstress.run.debug_03;

int main(){
	int i;
	assert(i==0);
	debug(a){
		i++;
		assert(i==1);
	}
	debug(b){
		i++;
		assert(0);
	}
	assert(i==1);
	return 0;
}