# HG changeset patch # User lindquist # Date 1213282891 -7200 # Node ID c6f25edd6ef38b0b63d6be5d2fddc689f066c87f # Parent e3355ce5444ba07564347314d573edcb16c7776b [svn r270] Forgot the test for struct debug info. diff -r e3355ce5444b -r c6f25edd6ef3 tangotests/debug8.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tangotests/debug8.d Thu Jun 12 17:01:31 2008 +0200 @@ -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; +}