view run/s/string_postfix_07_B.d @ 1080:d2ef2a6e291c

<daiphoenix@lycos.com> 2006-03-14 news:bug-51-3@http.d.puremagic.com/bugzilla/
author thomask
date Wed, 12 Jul 2006 10:56:55 +0000
parents
children 81222734adf3
line wrap: on
line source

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

// @author@	<daiphoenix@lycos.com>
// @date@	2006-03-14
// @uri@	news:bug-51-3@http.d.puremagic.com/bugzilla/

module dstress.run.s.string_postfix_07_B;

int main(){
	char[6] cstr = "1234"c;
	auto a = cast(dchar[1])(cstr);
	auto b = cast(dchar[1])("1234"c);

	if(a.length != b.length){
		assert(0);
	}

	if(a != b){
		assert(0);
	}

	return 0;
}