# HG changeset patch # User Christian Kamm # Date 1219694880 -7200 # Node ID 1d1f281a9b115409129cc591b009972138e1e8b1 # Parent c82cb55ee1ea5a549f868d464eb39bd70f057818 Move const_11 to compile. Addresses of globals are valid constants. diff -r c82cb55ee1ea -r 1d1f281a9b11 compile/const_11.d --- /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; + diff -r c82cb55ee1ea -r 1d1f281a9b11 nocompile/const_11.d --- 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; -