Mercurial > projects > ldc
annotate tests/mini/moduleinfo2.d @ 857:217e8c719a2f
Apply wilsonk's patch to AddrExp::toConstElem for struct literals.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Wed, 17 Dec 2008 20:40:27 +0100 |
parents | 1bb99290e03a |
children |
rev | line source |
---|---|
117 | 1 module moduleinfo2; |
270
d9d5d59873d8
[svn r291] Fixed a bunch of the old Phobos tests to work with Tango.
lindquist
parents:
117
diff
changeset
|
2 |
d9d5d59873d8
[svn r291] Fixed a bunch of the old Phobos tests to work with Tango.
lindquist
parents:
117
diff
changeset
|
3 extern(C) int printf(char*, ...); |
d9d5d59873d8
[svn r291] Fixed a bunch of the old Phobos tests to work with Tango.
lindquist
parents:
117
diff
changeset
|
4 |
117 | 5 void main() |
6 { | |
273 | 7 printf("listing modules:\n"); |
8 foreach(m; ModuleInfo) | |
117 | 9 { |
273 | 10 printf(" %.*s\n", m.name.length, m.name.ptr); |
117 | 11 } |
12 } |