Mercurial > projects > ldc
annotate tests/mini/moduleinfo2.d @ 583:12bda38ea366
Fixed choosing default target machine without needing to link in targets.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Sun, 07 Sep 2008 17:44:25 -0700 |
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 } |