view run/l/length_10_F.d @ 996:1d695c74f398

<CppCoder@gmail.com> 2006-05-02 news:bug-123-3@http.d.puremagic.com/bugzilla/
author thomask
date Mon, 15 May 2006 04:22:42 +0000
parents
children 81222734adf3
line wrap: on
line source

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

// @author@	<CppCoder@gmail.com>
// @date@	2006-05-02
// @uri@	news:bug-123-3@http.d.puremagic.com/bugzilla/

module dstress.run.l.length_10_F;

const char[] foo = "abc123";

int main(){
	char c = foo[4 % $];

	if(c != '2'){
		assert(0);
	}

	return 0;
}