changeset 1218:3a9e5f96ad6f

Bug from cpuid wrapper thread in D.announce: char[12] str = ""; notknown <notknown@none.com> 2006-10-26 news:ehpvlb$uer$1@digitaldaemon.com
author thomask
date Thu, 23 Nov 2006 10:44:20 +0000
parents cd5da42e46da
children 5d739c1b003f
files run/o/odd_bug_10_A.d run/o/odd_bug_10_B.d run/o/odd_bug_10_C.d
diffstat 3 files changed, 63 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/o/odd_bug_10_A.d	Thu Nov 23 10:44:20 2006 +0000
@@ -0,0 +1,21 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	notknown <notknown@none.com>
+// @date@	2006-10-26
+// @uri@	news:ehpvlb$uer$1@digitaldaemon.com
+// @desc@	Bug from cpuid wrapper thread in D.announce: char[12] str = "";
+
+module dstress.run.o.odd_bug_10_A;
+
+class C{
+	char[12] str = "";
+	uint i = 1;
+}
+
+int main(){
+	auto c = new C();
+	assert(c.i == 1);
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/o/odd_bug_10_B.d	Thu Nov 23 10:44:20 2006 +0000
@@ -0,0 +1,21 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	notknown <notknown@none.com>
+// @date@	2006-10-26
+// @uri@	news:ehpvlb$uer$1@digitaldaemon.com
+// @desc@	Bug from cpuid wrapper thread in D.announce: char[12] str = "";
+
+module dstress.run.o.odd_bug_10_B;
+
+class C{
+	uint i = 1;
+	char[12] str = "";
+}
+
+int main(){
+	auto c = new C();
+	assert(c.i == 1);
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/o/odd_bug_10_C.d	Thu Nov 23 10:44:20 2006 +0000
@@ -0,0 +1,21 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	notknown <notknown@none.com>
+// @date@	2006-10-26
+// @uri@	news:ehpvlb$uer$1@digitaldaemon.com
+// @desc@	Bug from cpuid wrapper thread in D.announce: char[12] str = "";
+
+module dstress.run.o.odd_bug_10_C;
+
+class C{
+	char[12] str;
+	uint i = 1;
+}
+
+int main(){
+	auto c = new C();
+	assert(c.i == 1);
+	return 0;
+}