Mercurial > projects > ldc
view tests/mini/multiarr2.d @ 1292:ad41053c336e
Make static int[] a = [1, 2]; a[0] = 4; not segfault
by making the array data ptr a non-const global variable.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 03 May 2009 11:16:54 +0200 |
parents | 1bb99290e03a |
children |
line wrap: on
line source
module multiarr2; void main() { static float[1][2][3] arr; assert(arr[2][1][0] !<>= float.nan); }