Mercurial > projects > dstress
changeset 1617:2c10afcfcf76
Move run/n/nested_class_04_{C,D} to nocompile. See DMD bug 80.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Thu, 23 Jul 2009 19:49:42 +0200 |
parents | 7b7967dd4203 |
children | 87a6ab8f478d |
files | nocompile/n/nested_class_04_C.d nocompile/n/nested_class_04_D.d run/n/nested_class_04_C.d run/n/nested_class_04_D.d |
diffstat | 4 files changed, 88 insertions(+), 88 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/n/nested_class_04_C.d Thu Jul 23 19:49:42 2009 +0200 @@ -0,0 +1,46 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ <jarrett.billingsley@gmail.com> +// @date@ 2006-04-02 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=80 + +module dstress.run.n.nested_class_04_C; + +struct Outer{ + int i; + + class Inner{ + int x; + + this(){ + x = i; + } + } + + Inner test(){ + Inner o; + + void bug(){ + o = new Inner(); + } + + bug(); + + return o; + } +} + +int main(){ + Outer* outer = new Outer(); + outer.i = 1; + Outer.Inner inner = outer.test(); + outer.i = 2; + + if(inner.x != 1){ + assert(0); + } + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/n/nested_class_04_D.d Thu Jul 23 19:49:42 2009 +0200 @@ -0,0 +1,42 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ <jarrett.billingsley@gmail.com> +// @date@ 2006-04-02 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=80 + +module dstress.run.n.nested_class_04_D; + +struct Outer{ + int i; + + class Inner{ + int x; + + this(){ + x = i; + } + } + + Inner test(){ + Inner o; + + o = new Inner(); + + return o; + } +} + +int main(){ + Outer* outer = new Outer(); + outer.i = 1; + Outer.Inner inner = outer.test(); + outer.i = 2; + + if(inner.x != 1){ + assert(0); + } + + return 0; +}
--- a/run/n/nested_class_04_C.d Sun Jul 12 17:14:44 2009 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,46 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// @author@ <jarrett.billingsley@gmail.com> -// @date@ 2006-04-02 -// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=80 - -module dstress.run.n.nested_class_04_C; - -struct Outer{ - int i; - - class Inner{ - int x; - - this(){ - x = i; - } - } - - Inner test(){ - Inner o; - - void bug(){ - o = new Inner(); - } - - bug(); - - return o; - } -} - -int main(){ - Outer* outer = new Outer(); - outer.i = 1; - Outer.Inner inner = outer.test(); - outer.i = 2; - - if(inner.x != 1){ - assert(0); - } - - return 0; -}
--- a/run/n/nested_class_04_D.d Sun Jul 12 17:14:44 2009 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,42 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// @author@ <jarrett.billingsley@gmail.com> -// @date@ 2006-04-02 -// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=80 - -module dstress.run.n.nested_class_04_D; - -struct Outer{ - int i; - - class Inner{ - int x; - - this(){ - x = i; - } - } - - Inner test(){ - Inner o; - - o = new Inner(); - - return o; - } -} - -int main(){ - Outer* outer = new Outer(); - outer.i = 1; - Outer.Inner inner = outer.test(); - outer.i = 2; - - if(inner.x != 1){ - assert(0); - } - - return 0; -}