Mercurial > projects > ldc
annotate tests/mini/static_ctor.d @ 655:93433f4b6963
Added -version=Tango in default llvmdc.conf
Fixed problem with array casts, all DWT modules needed for HelloWorld1 samples now compile. Still some linking issues.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Mon, 06 Oct 2008 12:46:57 +0200 |
parents | 1bb99290e03a |
children |
rev | line source |
---|---|
270
d9d5d59873d8
[svn r291] Fixed a bunch of the old Phobos tests to work with Tango.
lindquist
parents:
1
diff
changeset
|
1 extern(C) int printf(char*, ...); |
d9d5d59873d8
[svn r291] Fixed a bunch of the old Phobos tests to work with Tango.
lindquist
parents:
1
diff
changeset
|
2 |
1 | 3 static this() |
4 { | |
5 printf("static this\n"); | |
6 } | |
7 | |
8 static ~this() | |
9 { | |
10 printf("static ~this\n"); | |
11 } | |
12 | |
13 void main() | |
14 { | |
15 printf("main\n"); | |
16 } |