Mercurial > projects > ldc
annotate test/moduleinfo2.d @ 287:00eb2c967c3a trunk
[svn r308] Really fixed multidimensional new expressions. the first length was bad in the resulting slice.
author | lindquist |
---|---|
date | Sat, 21 Jun 2008 05:03:42 +0200 |
parents | 25fa34e899e9 |
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 } |