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

32 lines
314 B
D

module mini.norun_debug8;
struct Str
{
size_t len;
void* ptr;
}
struct Foo
{
long l;
Bar bar;
}
struct Bar
{
float x,y,z;
Foo* foo;
}
void main()
{
Str str;
Foo foo;
foo.l = 42;
foo.bar.y = 3.1415;
foo.bar.foo = &foo;
int* fail = cast(int*) 1;
*fail = 0;
}