Mercurial > projects > ldc
annotate tests/mini/static_ctor.d @ 1596:42fc0d955a0d
Updated runtest to always rebuild libtangobos-partial.a in case of updates.
Changed std.stdarg to import ldc.vararg so it has the correct implementation.
author | Robert Clipsham <robert@octarineparrot.com> |
---|---|
date | Sun, 15 Nov 2009 13:22:02 +0000 |
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 } |