view nocompile/switch_12.d @ 1383:52c9e86b6486

@url@ -> @uri@
author thomask
date Sun, 04 Mar 2007 13:07:35 +0000
parents 9a121126b077
children 774e02c900da
line wrap: on
line source

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

// @author@	Thomas Kuehne <thomas-dloop@kuehne.thisisspam.cn>
// @date@	2004-11-17
// @uri@	news:u1gr62-kjv.ln1@kuehne.cn
// @uri@	nntp://digitalmars.com/digitalmars.D.bugs/2288

// duplicate case "123" in switch statement

// __DSTRESS_ELINE__ 22

module dstress.nocompile.switch_12;

int main(){
	wchar[] array = "123";
	switch(array){
		case "123":{
			assert(0);
			break;
		}case "123":{
			assert(1);
			break;
		}default:{
			return -1; // dummy
		}
	}
		
}