diff --git a/tangotests/debug8.d b/tangotests/debug8.d new file mode 100644 index 00000000..66f30c7f --- /dev/null +++ b/tangotests/debug8.d @@ -0,0 +1,31 @@ +module tangotests.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; + *fail = 0; +}