Mercurial > projects > ldc
changeset 253:c6f25edd6ef3 trunk
[svn r270] Forgot the test for struct debug info.
author | lindquist |
---|---|
date | Thu, 12 Jun 2008 17:01:31 +0200 |
parents | e3355ce5444b |
children | 8187884566fa |
files | tangotests/debug8.d |
diffstat | 1 files changed, 31 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /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; +}