Mercurial > projects > ldc
view tests/mini/norun_debug3.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 | 24ea9bf5f8b7 |
children | 925779c19395 |
line wrap: on
line source
module mini.norun_debug3; void main() { int i = 42; int* ip = &i; int* fail; *fail = 0; }