annotate tangotests/debug8.d @ 253:c6f25edd6ef3 trunk

[svn r270] Forgot the test for struct debug info.
author lindquist
date Thu, 12 Jun 2008 17:01:31 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
253
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
1 module tangotests.debug8;
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
2
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
3 struct Str
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
4 {
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
5 size_t len;
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
6 void* ptr;
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
7 }
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
8
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
9 struct Foo
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
10 {
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
11 long l;
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
12 Bar bar;
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
13 }
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
14
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
15 struct Bar
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
16 {
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
17 float x,y,z;
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
18 Foo* foo;
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
19 }
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
20
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
21 void main()
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
22 {
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
23 Str str;
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
24 Foo foo;
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
25 foo.l = 42;
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
26 foo.bar.y = 3.1415;
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
27 foo.bar.foo = &foo;
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
28
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
29 int* fail;
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
30 *fail = 0;
c6f25edd6ef3 [svn r270] Forgot the test for struct debug info.
lindquist
parents:
diff changeset
31 }