Mercurial > projects > ldc
annotate tests/mini/static_ctor.d @ 450:22a56b65872b
Trying to get the old QD demo to work.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Fri, 01 Aug 2008 21:55: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 } |