changeset 87:dfbc0188e5aa

shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041101173804.4e16f816.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:829
author thomask
date Mon, 01 Nov 2004 12:44:06 +0000
parents 2535744a5310
children a3b3e35e30c0
files addon/constructor_04_A.d run/constructor_04.d
diffstat 2 files changed, 33 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/addon/constructor_04_A.d	Mon Nov 01 12:44:06 2004 +0000
@@ -0,0 +1,17 @@
+// @author@	shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp>
+// @date@	2004-11-01
+// @uri@	news://20041101173804.4e16f816.s31552@mail.ecc.u-tokyo.ac.jp
+// @url@	nttp://digitalmars.com/D.gnu:829
+
+// see dstress.run.constructor_04
+module dstress.addon.constructor_04_A;
+
+class Base{
+	this(){
+	}
+}
+
+class Derived : Base{
+	private:
+	// constructor will be wrongly generated here, so it is private.
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/constructor_04.d	Mon Nov 01 12:44:06 2004 +0000
@@ -0,0 +1,16 @@
+// @author@	shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp>
+// @date@	2004-11-01
+// @uri@	news://20041101173804.4e16f816.s31552@mail.ecc.u-tokyo.ac.jp
+// @url@	nttp://digitalmars.com/D.gnu:829
+
+// see also dstress.addon.constructor_04_A
+
+// __DSTRESS_DFLAGS__ addon/constructor_04_A.d
+
+module dstress.run.constructor_04;
+import dstress.addon.constructor_04_A;
+
+int main(){
+	Derived c = new Derived();
+	return 0;
+}