changeset 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 3c015ea74cfb
children 9c3cacbcf244
files run/s/string_postfix_07_A.d run/s/string_postfix_07_B.d
diffstat 2 files changed, 50 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/string_postfix_07_A.d	Wed Jul 12 10:56:55 2006 +0000
@@ -0,0 +1,25 @@
+// $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_A;
+
+int main(){
+	char[6] cstr = "123456"c;
+	auto a = cast(wchar[3])(cstr);
+	auto b = cast(wchar[3])("123456"c);
+
+	if(a.length != b.length){
+		assert(0);
+	}
+
+	if(a != b){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/s/string_postfix_07_B.d	Wed Jul 12 10:56:55 2006 +0000
@@ -0,0 +1,25 @@
+// $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;
+}