changeset 1298:da2ca77aec83

[Issue 628] Assertion failure: '0' on line 91 in file 'init.c' Matti Niemenmaa <deewiant@gmail.com> 2006-12-02 http://d.puremagic.com/issues/show_bug.cgi?id=628
author thomask
date Sat, 30 Dec 2006 15:40:50 +0000
parents c6b68d917f83
children 38be9fe455e2
files run/v/void_05_A.d run/v/void_05_B.d
diffstat 2 files changed, 44 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/v/void_05_A.d	Sat Dec 30 15:40:50 2006 +0000
@@ -0,0 +1,21 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Matti Niemenmaa <deewiant@gmail.com>
+// @date@	2006-12-02
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=628
+// @desc@	[Issue 628] Assertion failure: '0' on line 91 in file 'init.c'
+
+module dstress.run.v.void_05_A;
+
+int main(){
+	int x = void;
+	x = x.init;
+
+	if(x != 0){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/v/void_05_B.d	Sat Dec 30 15:40:50 2006 +0000
@@ -0,0 +1,23 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Matti Niemenmaa <deewiant@gmail.com>
+// @date@	2006-12-02
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=628
+// @desc@	[Issue 628] Assertion failure: '0' on line 91 in file 'init.c'
+
+module dstress.run.v.void_05_B;
+
+typedef int I = 0x12_34_FF_56;
+
+int main(){
+	I x = void;
+	x = x.init;
+
+	if(x != 0x12_34_FF_56){
+		assert(0);
+	}
+
+	return 0;
+}