Files
ldc/tests/mini/norun_debug12.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

25 lines
233 B
D

module mini.norun_debug12;
interface I
{
int foo();
}
class C : I
{
int i = 24;
int foo()
{
return i;
}
}
void main()
{
scope c = new C;
I i = c;
int* fail = cast(int*) 1;
*fail = 0;
}