Files
ldc/tests/mini/norun_debug5.d
Frits van Bommel b06fa1f05e 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.
2009-05-28 02:28:30 +02:00

16 lines
201 B
D

module mini.norun_debug5;
void main()
{
int i = 32;
real r = 3.1415;
real* p = &r;
func(i,r,p);
}
void func(int i, real r, real* p)
{
int* fail = cast(int*) 1;
*fail = 666;
}