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

19 lines
200 B
D

module mini.norun_debug9;
struct Foo
{
int a,b,c;
void func()
{
int* fail = cast(int*) 1;
*fail = 0;
}
}
void main()
{
Foo foo = Foo(1,10,73);
foo.func();
}