changeset 1590:1d1f281a9b11

Move const_11 to compile. Addresses of globals are valid constants.
author Christian Kamm <kamm incasoftware de>
date Mon, 25 Aug 2008 22:08:00 +0200
parents c82cb55ee1ea
children a62d2a1c5f14
files compile/const_11.d nocompile/const_11.d
diffstat 2 files changed, 13 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/const_11.d	Mon Aug 25 22:08:00 2008 +0200
@@ -0,0 +1,13 @@
+// $HeadURL$
+// $Date$
+// $URL$
+
+module dstress.compile.const_11;
+
+struct MyStruct{
+	int i=2;
+}
+
+const MyStruct s;
+const MyStruct* sp = &s;
+
--- a/nocompile/const_11.d	Mon Aug 25 22:05:07 2008 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-// $HeadURL$
-// $Date$
-// $URL$
-
-// __DSTRESS_ELINE__ 14
-
-module dstress.nocompile.const_11;
-
-struct MyStruct{
-	int i=2;
-}
-
-const MyStruct s;
-const MyStruct* sp = &s;
-