# HG changeset patch # User thomask # Date 1111131537 0 # Node ID c09a40fe4faac3de34f75b8e35e62bac38f212b8 # Parent 43ad4a47cee352775db51ff3eab8888efd8cba48 static is ignored when applied to other declarations Walter 2005-03-17 mail:000701c52b27$e4cdd220$0200a8c0@colossus diff -r 43ad4a47cee3 -r c09a40fe4faa nocompile/static_07.d --- a/nocompile/static_07.d Fri Mar 18 07:30:21 2005 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -// static can only be applied to members of a type (class, struct, union) - -module dstress.nocompile.static_07; - -static int test(){ - return 1; -} - -int main(){ - test(); - return 0; -} diff -r 43ad4a47cee3 -r c09a40fe4faa nocompile/static_11.d --- a/nocompile/static_11.d Fri Mar 18 07:30:21 2005 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -// static can only be applied to members of a type (class, struct, union) - -module dstress.nocompile.static_11; - -static int status; - -int main(){ - int check = status; - return 0; -} diff -r 43ad4a47cee3 -r c09a40fe4faa nocompile/static_13.d --- a/nocompile/static_13.d Fri Mar 18 07:30:21 2005 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -module dstress.nocompile.static_13; - -int check(){ - static int x; - return x; -} - -int main(){ - check(); - return 0; -} diff -r 43ad4a47cee3 -r c09a40fe4faa run/static_13.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/static_13.d Fri Mar 18 07:38:57 2005 +0000 @@ -0,0 +1,11 @@ +module dstress.run.static_13; + +int check(){ + static int x; + return x; +} + +int main(){ + check(); + return 0; +}