Files
ldc/tests/mini/norun_debug2.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
220 B
D

module mini.norun_debug2;
import tango.stdc.stdlib : rand;
void main()
{
size_t iter;
while (iter < 25)
{
if (rand() % 20 == 10)
*cast(int*)1 = 0;
++iter;
}
assert(0);
}