changeset 1369:dc2b72773b7f

[Issue 964] Internal error: ../ztc/cod3.c 1760 Thomas K?hne <thomas-dloop@kuehne.cn> 2007-02-15 http://d.puremagic.com/issues/show_bug.cgi?id=964
author thomask
date Mon, 26 Feb 2007 11:34:30 +0000
parents 2203e9c5850e
children ab0e4691f71e
files run/b/bug_cod3_1760_A.d run/b/bug_cod3_1760_B.d
diffstat 2 files changed, 43 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/b/bug_cod3_1760_A.d	Mon Feb 26 11:34:30 2007 +0000
@@ -0,0 +1,21 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Thomas Kühne <thomas-dloop@kuehne.cn>
+// @date@	2007-02-15
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=964
+// @desc@	[Issue 964] Internal error: ../ztc/cod3.c 1760
+
+module dstress.run.b.bug_cod3_1760_A;
+
+void func(){
+}
+
+int main(){
+	if(*cast(int*)&func){
+		return 0;
+	}
+	assert(0);
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/b/bug_cod3_1760_B.d	Mon Feb 26 11:34:30 2007 +0000
@@ -0,0 +1,22 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Thomas Kühne <thomas-dloop@kuehne.cn>
+// @date@	2007-02-15
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=964
+// @desc@	[Issue 964] Internal error: ../ztc/cod3.c 1760
+
+module dstress.run.b.bug_cod3_1760_B;
+
+void func(){
+}
+
+int main(){
+	void* v = &func;
+	if(*cast(int*)v){
+		return 0;
+	}
+	assert(0);
+}
+