Mercurial > projects > dstress
changeset 126:bd8caff749cf
"silent ctor" updated by Sean
author | thomask |
---|---|
date | Thu, 11 Nov 2004 20:34:08 +0000 |
parents | 42715df986eb |
children | 95bd987a5949 |
files | addon/constructor_06_A.d run/constructor_06.d |
diffstat | 2 files changed, 41 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/addon/constructor_06_A.d Thu Nov 11 20:34:08 2004 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ $Date$ ($Author$) + +// @author@ Sean Kelly <sean@f4.ca> +// @date@ 2004-11-11 +// @uri@ news://cn0g3t$o2i$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2249 + +// see dstress.run.constructor_06 +// see also dstress.addon.constructor_04_A + +module dstress.addon.constructor_06_A; + +class Base{ + this(){ + } +} + +class Derived : Base{ + private: + public: + // contrary to dstress.addon.constructor_04_A + // the constructor will be generated here, thus it's public +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/constructor_06.d Thu Nov 11 20:34:08 2004 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ $Date$ ($Author$) + +// @author@ Sean Kelly <sean@f4.ca> +// @date@ 2004-11-11 +// @uri@ news://cn0g3t$o2i$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2249 + +// see also dstress.addon.constructor_06_A + +// __DSTRESS_DFLAGS__ -I.. addon/constructor_06_A.d + +module dstress.run.constructor_06; +import dstress.addon.constructor_06_A; + +int main(){ + Derived c = new Derived(); + return 0; +}