view run/debug_01.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

module dstress.run.debug_01;

int main(){
	int x;
	assert(x==0);
	debug{
		x++;
	}
	assert(x==1);
	return 0;
}