# HG changeset patch # User thomask # Date 1099261249 0 # Node ID 2535744a5310caf77f1a3ed6d4f10eb49c53a7ef # Parent 659bb018c48906f2431ab42efe58a69bfb5f3cf3 tetsuya news://cm057b$13nu$1@digitaldaemon.com nttp://digitalmars.com/digitalmars.D.bugs:2165 diff -r 659bb018c489 -r 2535744a5310 nocompile/static_12.d --- 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; -} diff -r 659bb018c489 -r 2535744a5310 nocompile/static_13.d --- /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; +} diff -r 659bb018c489 -r 2535744a5310 run/static_14.d --- /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 +// @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; +} diff -r 659bb018c489 -r 2535744a5310 run/static_15.d --- /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 +// @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; +} diff -r 659bb018c489 -r 2535744a5310 run/static_16.d --- /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 +// @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; +}