view run/s/switch_23_B.d @ 1240:0972a593ff76

[Issue 596] New: Support array, arrayliteral and struct in switch and case Nazo Humei <lovesyao@hotmail.com> 2006-11-25 news:bug-596-3@http.d.puremagic.com/issues/
author thomask
date Sat, 25 Nov 2006 17:53:20 +0000
parents
children daef239f37cf
line wrap: on
line source

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

// @author@	Nazo Humei <lovesyao@hotmail.com>
// @date@	2006-11-25
// @uri@	news:bug-596-3@http.d.puremagic.com/issues/
// @desc@	[Issue 596] New: Support array, arrayliteral and struct in switch and case

module dstress.run.s.switch_23_B;

int main(){
	switch([cast(dchar)'a']){
		case "c"d:
			break;
		case "a"d:
			return 0;
		case "b"d:
			break;
	}

	assert(0);
}