Mercurial > projects > ldc
view tests/mini/bug59.d @ 1425:925779c19395
I ran into another issue like the one fixed by r1318, so update all of
`tests/mini/norun_debug*` to hopefully keep crashing using the same trick.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Thu, 28 May 2009 02:28:30 +0200 |
parents | 1bb99290e03a |
children |
line wrap: on
line source
module bug59; void main() { int[2] a = 0; //func(a); a[0] = 1; int i = a[0]; int* p = &a[0]; } void func(int[2] a) { int* p = cast(int*)a; } void func2(int[4] a) { int* p = 3+cast(int*)a; }