Mercurial > projects > dstress
changeset 1519:f71bd33bb278
updated to DMD-1.013
author | thomask |
---|---|
date | Fri, 27 Apr 2007 17:22:49 +0000 |
parents | 5b8f89bc1b52 |
children | b5c0842014ef |
files | nocompile/template_07.d run/t/template_07.d |
diffstat | 2 files changed, 24 insertions(+), 27 deletions(-) [+] |
line wrap: on
line diff
--- a/nocompile/template_07.d Fri Apr 27 17:21:55 2007 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// @author@ tetsuya <tetsuya_member@pathlink.com> -// @date@ 2004-13-13 -// @uri@ news:cpk4vq$1m5a$1@digitaldaemon.com -// @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2546 - - -// __DSTRESS_ERROR__ 18 - -module dstress.nocompile.template_07; - -template T(){ - class A { - this() { - T!().a = this; - } - } - A a; -} - -int main(){ - mixin T!(); - return 0; -}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/template_07.d Fri Apr 27 17:22:49 2007 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ tetsuya <tetsuya_member@pathlink.com> +// @date@ 2004-13-13 +// @uri@ news:cpk4vq$1m5a$1@digitaldaemon.com +// @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2546 + +module dstress.run.t.template_07; + +template T(){ + class A { + this() { + T!().a = this; + } + } + A a; +} + +int main(){ + mixin T!(); + return 0; +}