diff run/o/opCall_03_C.d @ 1314:198b48f868e6

[Issue 766] dmd.exe crash Boris Kolar <boris.kolar@globera.com> 2006-12-29 http://d.puremagic.com/issues/show_bug.cgi?id=766
author thomask
date Sun, 31 Dec 2006 14:28:46 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/o/opCall_03_C.d	Sun Dec 31 14:28:46 2006 +0000
@@ -0,0 +1,26 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Boris Kolar <boris.kolar@globera.com>
+// @date@	2006-12-29
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=766
+// @desc@	[Issue 766] dmd.exe crash
+
+module dstress.run.o.opCall_03_C;
+
+struct Foo{
+	static Foo opCall() {
+		return Foo.init;
+	}
+	
+	bool b = true;
+}
+
+int main(){
+	Foo f = Foo();
+	if(!f.b){
+		assert(0);
+	}
+	return 0;	
+}