Mercurial > projects > dstress
changeset 86:2535744a5310
tetsuya <tetsuya_member@pathlink.com> news://cm057b$13nu$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2165
author | thomask |
---|---|
date | Sun, 31 Oct 2004 22:20:49 +0000 |
parents | 659bb018c489 |
children | dfbc0188e5aa |
files | nocompile/static_12.d nocompile/static_13.d run/static_14.d run/static_15.d run/static_16.d |
diffstat | 5 files changed, 71 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/nocompile/static_12.d Sun Oct 31 21:21:04 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ - -int check(){ - static int x; - return x; -} - -int main(){ - check(); - return 0; -}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/static_13.d Sun Oct 31 22:20:49 2004 +0000 @@ -0,0 +1,11 @@ +module dstress.nocompile.static_13; + +int check(){ + static int x; + return x; +} + +int main(){ + check(); + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/static_14.d Sun Oct 31 22:20:49 2004 +0000 @@ -0,0 +1,20 @@ +// @author@ tetsuya <tetsuya_member@pathlink.com> +// @date@ 2004-10-30 +// @uri@ news://cm057b$13nu$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2165 + +module dstress.run.static_14; + +class MyClass{ + static { + int x; + } + static this() { + x=2; + } +} + +int main(){ + assert(MyClass.x==2); + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/static_15.d Sun Oct 31 22:20:49 2004 +0000 @@ -0,0 +1,20 @@ +// @author@ tetsuya <tetsuya_member@pathlink.com> +// @date@ 2004-10-30 +// @uri@ news://cm057b$13nu$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2165 + +module dstress.run.static_15; + +class MyClass{ + static { + int x; + static this() { + x=2; + } + } +} + +int main(){ + assert(MyClass.x==2); + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/static_16.d Sun Oct 31 22:20:49 2004 +0000 @@ -0,0 +1,20 @@ +// @author@ tetsuya <tetsuya_member@pathlink.com> +// @date@ 2004-10-30 +// @uri@ news://cm057b$13nu$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2165 + +module dstress.run.static_16; + +class MyClass{ + static { + int x; + this() { + x=2; + } + } +} + +int main(){ + assert(MyClass.x==2); + return 0; +}