annotate tangotests/debug8.d @ 314:8d98e42ece93 trunk

[svn r335] The basics of exception handling are in place. Still need to make sure calls are turned into invokes everywhere. (NewExpression for instance) Still some rough edges and corner cases to figure out. Needs testing!
author ChristianK
date Wed, 02 Jul 2008 22:20:18 +0200
parents 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 }