Mercurial > projects > dstress
changeset 276:a5b12edf355b
-inline flag and "with"
nail <nail_member@pathlink.com>
2005-02-06
news:cu5ghl$1cpd$1@digitaldaemon.com
author | thomask |
---|---|
date | Mon, 07 Feb 2005 13:29:46 +0000 |
parents | 62ebf330f1be |
children | 56edddab1384 |
files | compile/inline_02.d compile/inline_03.d |
diffstat | 2 files changed, 64 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/inline_02.d Mon Feb 07 13:29:46 2005 +0000 @@ -0,0 +1,31 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ nail <nail_member@pathlink.com> +// @date@ 2005-02-06 +// @uri@ news:cu5ghl$1cpd$1@digitaldaemon.com + +module dstress.compile.inline_02; + +struct Struct{ + + static Struct bug(){ + Struct mat; + + with (mat){ + } + + return mat; + } + + static Struct check(){ + Struct a; + return Struct.bug() * a; + } + + Struct opMul(Struct mat){ + return mat; + } +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/inline_03.d Mon Feb 07 13:29:46 2005 +0000 @@ -0,0 +1,33 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ nail <nail_member@pathlink.com> +// @date@ 2005-02-06 +// @uri@ news:cu5ghl$1cpd$1@digitaldaemon.com + +// __DSTRESS_DFLAGS__ -inline + +module dstress.compile.inline_03; + +struct Struct{ + + static Struct bug(){ + Struct mat; + + with (mat){ + } + + return mat; + } + + static Struct check(){ + Struct a; + return Struct.bug() * a; + } + + Struct opMul(Struct mat){ + return mat; + } +} +