changeset 328:c09a40fe4faa

static is ignored when applied to other declarations Walter <walter@digitalmars.com> 2005-03-17 mail:000701c52b27$e4cdd220$0200a8c0@colossus
author thomask
date Fri, 18 Mar 2005 07:38:57 +0000
parents 43ad4a47cee3
children b25c950a5e9f
files nocompile/static_07.d nocompile/static_11.d nocompile/static_13.d run/static_13.d
diffstat 4 files changed, 11 insertions(+), 33 deletions(-) [+]
line wrap: on
line diff
--- 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;
-}
--- 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;
-}
--- 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;
-}
--- /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;
+}