# HG changeset patch # User thomask # Date 1172594508 0 # Node ID ab0e4691f71e16727ecd8e2ec5241dc2af940923 # Parent dc2b72773b7f6f731fdd18212b91dd57e3e708ef [Issue 853] Internal error: toir.c 182 Johan Granberg 2007-01-17 http://d.puremagic.com/issues/show_bug.cgi?id=853 diff -r dc2b72773b7f -r ab0e4691f71e run/b/bug_toir_182_A.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/b/bug_toir_182_A.d Tue Feb 27 16:41:48 2007 +0000 @@ -0,0 +1,38 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Johan Granberg +// @date@ 2007-01-17 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=853 +// @desc@ [Issue 853] Internal error: toir.c 182 + +module dstress.run.b.bug_toir_182_A; + +class StackContext{ + this(void delegate() dg){ + } +} + +class Test{ + StackContext context; + + private void init(){ + context = new StackContext({}); + } + + this(){ + init(); + } +} + +int main(){ + Test t = new Test(); + if(!t){ + assert(0); + } + if(!t.context){ + assert(0); + } + return 0; +} diff -r dc2b72773b7f -r ab0e4691f71e run/b/bug_toir_182_B.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/b/bug_toir_182_B.d Tue Feb 27 16:41:48 2007 +0000 @@ -0,0 +1,38 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Johan Granberg +// @date@ 2007-01-17 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=853 +// @desc@ [Issue 853] Internal error: toir.c 182 + +module dstress.run.b.bug_toir_182_B; + +class StackContext{ + this(void delegate() dg){ + } +} + +class Test{ + StackContext context; + + void init(){ + context = new StackContext({}); + } + + this(){ + init(); + } +} + +int main(){ + Test t = new Test(); + if(!t){ + assert(0); + } + if(!t.context){ + assert(0); + } + return 0; +} diff -r dc2b72773b7f -r ab0e4691f71e run/b/bug_toir_182_C.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/b/bug_toir_182_C.d Tue Feb 27 16:41:48 2007 +0000 @@ -0,0 +1,38 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Johan Granberg +// @date@ 2007-01-17 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=853 +// @desc@ [Issue 853] Internal error: toir.c 182 + +module dstress.run.b.bug_toir_182_C; + +class StackContext{ + this(void delegate() dg){ + } +} + +class Test{ + StackContext context; + + protected void init(){ + context = new StackContext({}); + } + + this(){ + init(); + } +} + +int main(){ + Test t = new Test(); + if(!t){ + assert(0); + } + if(!t.context){ + assert(0); + } + return 0; +} diff -r dc2b72773b7f -r ab0e4691f71e run/b/bug_toir_182_D.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/b/bug_toir_182_D.d Tue Feb 27 16:41:48 2007 +0000 @@ -0,0 +1,38 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Johan Granberg +// @date@ 2007-01-17 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=853 +// @desc@ [Issue 853] Internal error: toir.c 182 + +module dstress.run.b.bug_toir_182_D; + +class StackContext{ + this(void delegate() dg){ + } +} + +class Test{ + StackContext context; + + public void init(){ + context = new StackContext({}); + } + + this(){ + init(); + } +} + +int main(){ + Test t = new Test(); + if(!t){ + assert(0); + } + if(!t.context){ + assert(0); + } + return 0; +} diff -r dc2b72773b7f -r ab0e4691f71e run/b/bug_toir_182_E.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/b/bug_toir_182_E.d Tue Feb 27 16:41:48 2007 +0000 @@ -0,0 +1,34 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Johan Granberg +// @date@ 2007-01-17 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=853 +// @desc@ [Issue 853] Internal error: toir.c 182 + +module dstress.run.b.bug_toir_182_E; + +class StackContext{ + this(void delegate() dg){ + } +} + +class Test{ + StackContext context; + + private this(){ + context = new StackContext({}); + } +} + +int main(){ + Test t = new Test(); + if(!t){ + assert(0); + } + if(!t.context){ + assert(0); + } + return 0; +}