changeset 1496:64151e92e113

[Issue 1172] Inline assembler: cannot access member of templated aggregate directly Matti Niemenmaa <deewiant@gmail.com> 2007-04-21 http://d.puremagic.com/issues/show_bug.cgi?id=1172
author thomask
date Mon, 23 Apr 2007 17:55:28 +0000
parents 7a686112b047
children 1eca48f95dab
files run/l/length_12_A.d run/l/length_12_B.d run/l/length_12_C.d
diffstat 3 files changed, 65 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/l/length_12_A.d	Mon Apr 23 17:55:28 2007 +0000
@@ -0,0 +1,21 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Matti Niemenmaa <deewiant@gmail.com>
+// @date@	2007-04-21
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1171
+// @desc@	[Issue 1171] Cannot create a static array with the length of a const static array in function scope
+
+module dstress.run.l.length_12_A;
+
+int main() {
+	const int[2] foo;
+	int[foo.length] bar;
+
+	if(2 != bar.length){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/l/length_12_B.d	Mon Apr 23 17:55:28 2007 +0000
@@ -0,0 +1,22 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Matti Niemenmaa <deewiant@gmail.com>
+// @date@	2007-04-21
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1171
+// @desc@	[Issue 1171] Cannot create a static array with the length of a const static array in function scope
+
+module dstress.run.l.length_12_B;
+
+const int[2] foo;
+
+int main() {
+	int[foo.length] bar;
+
+	if(2 != bar.length){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/l/length_12_C.d	Mon Apr 23 17:55:28 2007 +0000
@@ -0,0 +1,22 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Matti Niemenmaa <deewiant@gmail.com>
+// @date@	2007-04-21
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1171
+// @desc@	[Issue 1171] Cannot create a static array with the length of a const static array in function scope
+
+module dstress.run.l.length_12_C;
+
+const int[2] foo;
+int[foo.length] bar;
+
+int main() {
+
+	if(2 != bar.length){
+		assert(0);
+	}
+
+	return 0;
+}