view run/c/case_04_B.d @ 1320:daef239f37cf

sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
author thomask
date Sun, 31 Dec 2006 19:59:08 +0000
parents 2341845c9184
children
line wrap: on
line source

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

// @author@	Tomasz Stachowiak <h3r3tic@mat.uni.torun.pl>
// @date@	2006-10-12
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=431
// @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;
}