Mercurial > projects > dstress
changeset 811:47da30a67c8d
Stewart Gordon <smjg_1998@yahoo.com>
2005-12-12
news:dnjnqe$16sv$1@digitaldaemon.com
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_06_A.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,15 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 14 + +module dstress.nocompile.e.ExpressionStatement_06_A; + +void main() { + ; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_06_B.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,13 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 13 + +module dstress.nocompile.e.ExpressionStatement_06_B; + +;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_07_A.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,15 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 14 + +module dstress.nocompile.e.ExpressionStatement_07_A; + +void main() { + static if (1); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_07_B.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,13 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 13 + +module dstress.nocompile.e.ExpressionStatement_07_B; + +static if (1);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_07_C.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 15 + +module dstress.nocompile.e.ExpressionStatement_07_C; + +void main() { + static if (1){ + }else; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_07_D.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,14 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 14 + +module dstress.nocompile.e.ExpressionStatement_07_D; + +static if (1){ +}else;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_08_A.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,15 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 14 + +module dstress.nocompile.e.ExpressionsStatement_08_A; + +void main() { + debug; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_08_B.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,15 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 14 + +module dstress.nocompile.e.ExpressionsStatement_08_B; + +void main() { + version; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_08_C.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,13 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 13 + +module dstress.nocompile.e.ExpressionsStatement_08_C; + +version;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_08_D.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,13 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 13 + +module dstress.nocompile.e.ExpressionsStatement_08_D; + +debug;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_08_E.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 15 + +module dstress.nocompile.e.ExpressionsStatement_08_E; + +void main() { + debug{ + }else; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_08_F.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 15 + +module dstress.nocompile.e.ExpressionsStatement_08_F; + +void main() { + version{ + }else; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_08_G.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,14 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 14 + +module dstress.nocompile.e.ExpressionsStatement_08_G; + +version{ +}else;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_08_H.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,14 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 14 + +module dstress.nocompile.e.ExpressionsStatement_08_H; + +debug{ +}else;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_08_I.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,15 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 14 + +module dstress.nocompile.e.ExpressionsStatement_08_I; + +void main() { + debug(1); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_08_J.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,15 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 14 + +module dstress.nocompile.e.ExpressionsStatement_08_J; + +void main() { + version(1); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_08_K.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,13 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 13 + +module dstress.nocompile.e.ExpressionsStatement_08_K; + +version(1);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_08_L.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,13 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 13 + +module dstress.nocompile.e.ExpressionsStatement_08_L; + +debug(1);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_08_M.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 15 + +module dstress.nocompile.e.ExpressionsStatement_08_M; + +void main(){ + debug(1){ + }else; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_08_N.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 15 + +module dstress.nocompile.e.ExpressionsStatement_08_N; + +void main(){ + version(1){ + }else; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_08_O.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,14 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 14 + +module dstress.nocompile.e.ExpressionsStatement_08_O; + +version(1){ +}else;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_08_P.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,14 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 14 + +module dstress.nocompile.e.ExpressionsStatement_08_P; + +debug(1){ +}else;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_08_Q.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,14 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 14 + +module dstress.nocompile.e.ExpressionsStatement_08_Q; + +debug(a){ +}else;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_08_R.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,14 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 14 + +module dstress.nocompile.e.ExpressionsStatement_08_R; + +version(a){ +}else;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_08_S.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,13 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 13 + +module dstress.nocompile.e.ExpressionsStatement_08_S; + +version(a);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_08_T.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,13 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 13 + +module dstress.nocompile.e.ExpressionsStatement_08_T; + +debug(a);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_08_U.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,15 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 14 + +module dstress.nocompile.e.ExpressionsStatement_08_U; + +void main(){ + debug(a); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_08_V.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,15 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 14 + +module dstress.nocompile.e.ExpressionsStatement_08_V; + +void main(){ + version(a); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_08_W.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 15 + +module dstress.nocompile.e.ExpressionsStatement_08_W; + +void main(){ + version(a){ + }else; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_08_X.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 15 + +module dstress.nocompile.e.ExpressionsStatement_08_X; + +void main(){ + debug(a){ + }else; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/undefined/typedef_10_A.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +module dstress.undefined.typedef_10_A; + +/* When typedefs are arithmetically combined, what should be the type of the + * result? The spec gives no indication. This testcase asserts the way I + * feel it should be. (Stewart Gordon) + */ + +typedef int Int1; +typedef int Int2; + +int main() { + Int1 i1; + Int2 i2; + + static assert (is(typeof(i1 + i2) == int)); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/undefined/typedef_10_B.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,22 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +module dstress.undefined.typedef_10_B; + +/* When typedefs are arithmetically combined, what should be the type of the + * result? The spec gives no indication. This testcase asserts the way I + * feel it should be. (Stewart Gordon) + */ +typedef int Int1; + +int main() { + Int1 i1; + int i2; + + static assert (is(typeof(i1 + i2) == int)); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/undefined/typedef_10_C.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,22 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +module dstress.undefined.typedef_10_C; + +/* When typedefs are arithmetically combined, what should be the type of the + * result? The spec gives no indication. This testcase asserts the way I + * feel it should be. (Stewart Gordon) + */ +typedef int Int2; + +int main() { + int i1; + Int2 i2; + + static assert (is(typeof(i1 + i2) == int)); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/undefined/typedef_10_D.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,22 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +module dstress.undefined.typedef_10_D; + +/* When typedefs are arithmetically combined, what should be the type of the + * result? The spec gives no indication. This testcase asserts the way I + * feel it should be. (Stewart Gordon) + */ + +typedef int Int1; + +int main() { + Int1 i1; + + static assert (is(typeof(i1 + 42) == int)); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/undefined/typedef_10_E.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,21 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +module dstress.undefined.typedef_10_E; + +/* When typedefs are arithmetically combined, what should be the type of the + * result? The spec gives no indication. This testcase asserts the way I + * feel it should be. (Stewart Gordon) + */ +typedef int Int2; + +int main() { + Int2 i2; + + static assert (is(typeof(42 + i2) == int)); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/undefined/typedef_10_F.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +module dstress.undefined.typedef_10_F; + +typedef int Int; + +int main() { + Int i; + long l; + + static assert (is(typeof(i + l) == long)); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/undefined/typedef_10_G.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,22 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +module dstress.undefined.typedef_10_G; + +/* When typedefs are arithmetically combined, what should be the type of the + * result? The spec gives no indication. This testcase asserts the way I + * feel it should be. (Stewart Gordon) + */ +typedef int Int; + +int main() { + long l; + Int i; + + static assert (is(typeof(l + i) == long)); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/undefined/typedef_10_H.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,22 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +module dstress.undefined.typedef_10_H; + +/* When typedefs are arithmetically combined, what should be the type of the + * result? The spec gives no indication. This testcase asserts the way I + * feel it should be. (Stewart Gordon) + */ +typedef int Int; + +int main() { + Int i; + short s; + + static assert (is(typeof(i + s) == long)); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/undefined/typedef_10_I.d Sun Feb 05 09:57:55 2006 +0000 @@ -0,0 +1,22 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-12-12 +// @uri@ news:dnjnqe$16sv$1@digitaldaemon.com + +module dstress.undefined.typedef_10_I; + +/* When typedefs are arithmetically combined, what should be the type of the + * result? The spec gives no indication. This testcase asserts the way I + * feel it should be. (Stewart Gordon) + */ +typedef int Int; + +int main() { + short s; + Int i; + + static assert (is(typeof(s + i) == int)); +}