view run/c/case_04_B.d @ 1199:2341845c9184

[Issue 431] New: Invalid case selected when switching on a long Tomasz Stachowiak <h3r3tic@mat.uni.torun.pl> 2006-10-12 news:bug-431-3@http.d.puremagic.com/issues/
author thomask
date Sat, 21 Oct 2006 13:27:52 +0000
parents
children daef239f37cf
line wrap: on
line source

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

// @author@	Tomasz Stachowiak <h3r3tic@mat.uni.torun.pl>
// @date@	2006-10-12
// @uri@	news:bug-431-3@http.d.puremagic.com/issues/
// @desc@	[Issue 431] New: Invalid case selected when switching on a long

module dstress.run.c.case_04_B;

int main() {
	long foo = 4;
	switch (foo) {
		case 2: assert(false); break;
		case 3: assert(false); break;
		case 4: break;
		case 5: assert(false); break;
		default: assert(false);
	}

	return 0;
}