Mercurial > projects > ldc
annotate tests/mini/static_ctor.d @ 493:017ca8645a1f
Make llvmdc work with llvm 2.4svn revision 54614. Breaks compatibility with llvm 2.3.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 10 Aug 2008 21:09:23 +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 } |