view run/s/switch_22_C.d @ 1061:5bbc978e55a0

fixed switch_22 thx to BCS
author thomask
date Fri, 30 Jun 2006 07:17:28 +0000
parents 039ab9232f59
children 986983b8cf7a
line wrap: on
line source

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

// @author@	<BCS@pathlink.com>
// @date@	2006-06-16
// @uri@	news:e6umde$2ok0$2@digitaldaemon.com

module dstress.run.s.switch_22_C;

int main(){
	int i = 2;
	
	switch(3){
		scope(success) i--;
		
		default:
	}

	if(i != 2){
		assert(0);
	}

	return 0;
}