Mercurial > projects > ldc
annotate test/static_ctor.d @ 324:c542d12017e5 trunk
[svn r345] Fixed the new moduleinfo stuff to have consistent symbol names with the D style.
author | lindquist |
---|---|
date | Thu, 10 Jul 2008 00:13:09 +0200 |
parents | d9d5d59873d8 |
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 } |