Mercurial > projects > ldc
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 |
rev | line source |
---|---|
253 | 1 module tangotests.debug8; |
2 | |
3 struct Str | |
4 { | |
5 size_t len; | |
6 void* ptr; | |
7 } | |
8 | |
9 struct Foo | |
10 { | |
11 long l; | |
12 Bar bar; | |
13 } | |
14 | |
15 struct Bar | |
16 { | |
17 float x,y,z; | |
18 Foo* foo; | |
19 } | |
20 | |
21 void main() | |
22 { | |
23 Str str; | |
24 Foo foo; | |
25 foo.l = 42; | |
26 foo.bar.y = 3.1415; | |
27 foo.bar.foo = &foo; | |
28 | |
29 int* fail; | |
30 *fail = 0; | |
31 } |