changeset 772:98e71577fcc1

Don Clugston <dac@nospam.com.au> 2005-12-06 news:dn45s8$vd9$1@digitaldaemon.com
author thomask
date Sat, 10 Dec 2005 00:40:13 +0000
parents a2e5dd18d87f
children 984a71a51470
files run/b/bug_expression_525_A.d run/b/bug_expression_525_B.d run/b/bug_expression_525_C.d run/b/bug_expression_525_D.d run/b/bug_expression_525_E.d
diffstat 5 files changed, 105 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/b/bug_expression_525_A.d	Sat Dec 10 00:40:13 2005 +0000
@@ -0,0 +1,21 @@
+// $HeadURL: svn://dstress.kuehne.cn/run/__DATE__01.d $
+// $Date: 2005-03-12 14:49:58 +0100 (Sat, 12 Mar 2005) $
+// $Author: thomask $
+
+// @author@	Don Clugston <dac@nospam.com.au>
+// @date@	2005-12-06
+// @uri@	news:dn45s8$vd9$1@digitaldaemon.com
+
+module dstress.run.b.bug_expression_525_A;
+
+template t(char[] arg){
+	const char [] t = "hello";
+}
+
+const char [] s = t!("a"[0 .. 1]);
+
+int main(){
+	if(s == "hello"){
+		return 0;
+	}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/b/bug_expression_525_B.d	Sat Dec 10 00:40:13 2005 +0000
@@ -0,0 +1,21 @@
+// $HeadURL: svn://dstress.kuehne.cn/run/__DATE__01.d $
+// $Date: 2005-03-12 14:49:58 +0100 (Sat, 12 Mar 2005) $
+// $Author: thomask $
+
+// @author@	Don Clugston <dac@nospam.com.au>
+// @date@	2005-12-06
+// @uri@	news:dn45s8$vd9$1@digitaldaemon.com
+
+module dstress.run.b.bug_expression_525_B;
+
+template t(char[] arg){
+	const char [] t = "hello";
+}
+
+const char [] s = t!("a");
+
+int main(){
+	if(s == "hello"){
+		return 0;
+	}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/b/bug_expression_525_C.d	Sat Dec 10 00:40:13 2005 +0000
@@ -0,0 +1,21 @@
+// $HeadURL: svn://dstress.kuehne.cn/run/__DATE__01.d $
+// $Date: 2005-03-12 14:49:58 +0100 (Sat, 12 Mar 2005) $
+// $Author: thomask $
+
+// @author@	Don Clugston <dac@nospam.com.au>
+// @date@	2005-12-06
+// @uri@	news:dn45s8$vd9$1@digitaldaemon.com
+
+module dstress.run.b.bug_expression_525_C;
+
+template t(char[] arg){
+	const char [] t = arg;
+}
+
+const char [] s = t!("a"[0 .. 1]);
+
+int main(){
+	if(s == "a"){
+		return 0;
+	}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/b/bug_expression_525_D.d	Sat Dec 10 00:40:13 2005 +0000
@@ -0,0 +1,21 @@
+// $HeadURL: svn://dstress.kuehne.cn/run/__DATE__01.d $
+// $Date: 2005-03-12 14:49:58 +0100 (Sat, 12 Mar 2005) $
+// $Author: thomask $
+
+// @author@	Don Clugston <dac@nospam.com.au>
+// @date@	2005-12-06
+// @uri@	news:dn45s8$vd9$1@digitaldaemon.com
+
+module dstress.run.b.bug_expression_525_D;
+
+template t(){
+	const char [] t = "hello";
+}
+
+const char [] s = t!();
+
+int main(){
+	if(s == "a"){
+		return 0;
+	}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/b/bug_expression_525_E.d	Sat Dec 10 00:40:13 2005 +0000
@@ -0,0 +1,21 @@
+// $HeadURL: svn://dstress.kuehne.cn/run/__DATE__01.d $
+// $Date: 2005-03-12 14:49:58 +0100 (Sat, 12 Mar 2005) $
+// $Author: thomask $
+
+// @author@	Don Clugston <dac@nospam.com.au>
+// @date@	2005-12-06
+// @uri@	news:dn45s8$vd9$1@digitaldaemon.com
+
+module dstress.run.b.bug_expression_525_E;
+
+template t(char[] arg){
+	const char [] s = "hello";
+}
+
+const char [] s = t!("a"[0 .. 1]).s;
+
+int main(){
+	if(s == "hello"){
+		return 0;
+	}
+}