From 6565e9e09f068a06659bd29333497b9e54619eae Mon Sep 17 00:00:00 2001 From: Tomas Lindquist Olsen Date: Thu, 12 Jun 2008 17:01:31 +0200 Subject: [PATCH] [svn r270] Forgot the test for struct debug info. --- tangotests/debug8.d | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 tangotests/debug8.d 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; +}