Mercurial > projects > ldc
annotate tests/mini/moduleinfo2.d @ 889:d2d6107e4ec2
Fix #165, thanks afb.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 17 Jan 2009 17:44:54 +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 } |