Mercurial > projects > dstress
changeset 1269:c99e8aac0e0c
partial review
author | thomask |
---|---|
date | Fri, 22 Dec 2006 13:17:55 +0000 |
parents | 93511f726375 |
children | 660f9196b52a |
files | nocompile/b/expression_4154_A.d nocompile/b/expression_4154_B.d nocompile/e/expression_4154_A.d nocompile/e/expression_4154_B.d run/b/bug_expression_525_D.d run/b/bug_optimize_294_C.d run/b/bug_optimize_294_E.d run/b/expression_4154_C.d run/bug_20041226_A.d run/e/expression_4154_C.d run/f/foreach_28_B.d run/m/mixin_16_A.d |
diffstat | 12 files changed, 95 insertions(+), 97 deletions(-) [+] |
line wrap: on
line diff
--- a/nocompile/b/expression_4154_A.d Thu Dec 21 15:12:10 2006 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// @author@ Kazuhiro Inaba <kinaba@is.s.u-tokyo.ac.jp> -// @date@ 2006-12-03 -// @uri@ news:bug-640-3@http.d.puremagic.com/issues/ -// @desc@ [Issue 640] New: Strage error messages around structInstance.init - -// __DSTRESS_ELINE__ 19 - -module dstress.nocompile.b.expression_4154_A; - -struct S { - int i; -} - -void foo(){ - S s = {0}; - - s = s.init; -} -
--- a/nocompile/b/expression_4154_B.d Thu Dec 21 15:12:10 2006 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// @author@ Kazuhiro Inaba <kinaba@is.s.u-tokyo.ac.jp> -// @date@ 2006-12-03 -// @uri@ news:bug-640-3@http.d.puremagic.com/issues/ -// @desc@ [Issue 640] New: Strage error messages around structInstance.init - -// __DSTRESS_ELINE__ 19 - -module dstress.nocompile.b.expression_4154_B; - -struct S { - int i; -} - -void foo(){ - S s = {0}; - - s = S.init; -} -
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/expression_4154_A.d Fri Dec 22 13:17:55 2006 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Kazuhiro Inaba <kinaba@is.s.u-tokyo.ac.jp> +// @date@ 2006-12-03 +// @uri@ news:bug-640-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 640] New: Strage error messages around structInstance.init + +// __DSTRESS_ELINE__ 19 + +module dstress.nocompile.e.expression_4154_A; + +struct S { + int i; +} + +void foo(){ + S s = {0}; + + s = s.init; +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/expression_4154_B.d Fri Dec 22 13:17:55 2006 +0000 @@ -0,0 +1,23 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Kazuhiro Inaba <kinaba@is.s.u-tokyo.ac.jp> +// @date@ 2006-12-03 +// @uri@ news:bug-640-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 640] New: Strage error messages around structInstance.init + +// __DSTRESS_ELINE__ 19 + +module dstress.nocompile.e.expression_4154_B; + +struct S { + int i; +} + +void foo(){ + S s = {0}; + + s = S.init; +} +
--- a/run/b/bug_expression_525_D.d Thu Dec 21 15:12:10 2006 +0000 +++ b/run/b/bug_expression_525_D.d Fri Dec 22 13:17:55 2006 +0000 @@ -15,7 +15,7 @@ const char [] s = t!(); int main(){ - if(s == "a"){ + if(s == "hello"){ return 0; } }
--- a/run/b/bug_optimize_294_C.d Thu Dec 21 15:12:10 2006 +0000 +++ b/run/b/bug_optimize_294_C.d Fri Dec 22 13:17:55 2006 +0000 @@ -13,7 +13,7 @@ } int main() { - if ((Foo!(char)).init == (Foo!(byte)).init){ + if ((Foo!(byte)).init == (Foo!(byte)).init){ return 1; } return 0;
--- a/run/b/bug_optimize_294_E.d Thu Dec 21 15:12:10 2006 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// @author@ Boris Kolar <boris.kolar@globera.com> -// @date@ 2006-11-29 -// @uri@ news:<bug-618-3@http.d.puremagic.com/issues/ -// @desc@ [Issue 618] New: The following program crashes dmd.exe 0.175 - -module dstress.run.b.bug_optimize_294_E; - -struct Foo(T) { - int dummy; -} - -int main() { - if ((Foo!(char)).init != (Foo!(char)).init){ - return 1; - } - return 0; -}
--- a/run/b/expression_4154_C.d Thu Dec 21 15:12:10 2006 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// @author@ Kazuhiro Inaba <kinaba@is.s.u-tokyo.ac.jp> -// @date@ 2006-12-03 -// @uri@ news:bug-640-3@http.d.puremagic.com/issues/ -// @desc@ [Issue 640] New: Strage error messages around structInstance.init - -module dstress.run.b.expression_4154_C; - -struct S { - int i = 2; -} - -int main(){ - const S s = {1}; - - S x = s.init; - - if(x.i != 2){ - assert(0); - } - - return 0; -} -
--- a/run/bug_20041226_A.d Thu Dec 21 15:12:10 2006 +0000 +++ b/run/bug_20041226_A.d Fri Dec 22 13:17:55 2006 +0000 @@ -48,7 +48,7 @@ void extractTriangles(GeomObject geomObj){ void foobar(){ try{ - writefln("name: ", geomObj.name); + dummy("name: ", geomObj.name); return; // avoid accessing the array with 0 elements in the next line geomObj.mesh.faces[0].a - geomObj.xlate; // when this line is removed, the bug doesn't appear
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/e/expression_4154_C.d Fri Dec 22 13:17:55 2006 +0000 @@ -0,0 +1,27 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Kazuhiro Inaba <kinaba@is.s.u-tokyo.ac.jp> +// @date@ 2006-12-03 +// @uri@ news:bug-640-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 640] New: Strage error messages around structInstance.init + +module dstress.run.e.expression_4154_C; + +struct S { + int i = 2; +} + +int main(){ + const S s = {1}; + + S x = s.init; + + if(x.i != 2){ + assert(0); + } + + return 0; +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/f/foreach_28_B.d Fri Dec 22 13:17:55 2006 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-04-18 +// @uri@ news:d4026v$nc0$5@digitaldaemon.com + +module dstress.run.f.foreach_28_B; + +int main(char[][] args) { + foreach(char[] p; args){ + static if(0){ + int i; + } + } + return 0; +}