annotate tangotests/debug8.d @ 285:297690b5d4a5 trunk

[svn r306] Fixed: it's now possible to compile and link llvmdc with MinGW32 and msys on Win32 :D I tried it myself ;) Building the runtime still needs some work, but it's a step in the right direction.
author lindquist
date Sat, 21 Jun 2008 03:14:49 +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 }