annotate tests/mini/debug8.d @ 341:1bb99290e03a trunk

[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
author lindquist
date Sun, 13 Jul 2008 02:51:19 +0200
parents tangotests/debug8.d@c6f25edd6ef3
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 }