diff tests/mini/const2.d @ 819:446263a8a30d

Fixed taking address of global static array element as constant expression.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Tue, 02 Dec 2008 01:07:22 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/mini/const2.d	Tue Dec 02 01:07:22 2008 +0100
@@ -0,0 +1,7 @@
+int[10] test;
+int* t = &test[3];
+
+void main()
+{
+    assert(t is &test[3]);
+}