# HG changeset patch # User thomask # Date 1099313046 0 # Node ID dfbc0188e5aaed76cc23907c5649e1b13f092002 # Parent 2535744a5310caf77f1a3ed6d4f10eb49c53a7ef shinichiro.h news://20041101173804.4e16f816.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:829 diff -r 2535744a5310 -r dfbc0188e5aa addon/constructor_04_A.d --- /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 +// @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. +} diff -r 2535744a5310 -r dfbc0188e5aa run/constructor_04.d --- /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 +// @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; +}