Mercurial > projects > ldc
annotate test/moduleinfo2.d @ 306:0baca2feb554 trunk
[svn r327] Fixed some more MinGW32 issues. It's now very close to working.
Fixed problems with inline asm like: mov EAX, FS:4 , which incidentally is used in the runtime to get the stack bottom, on Windows.
author | lindquist |
---|---|
date | Fri, 27 Jun 2008 23:58:22 +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 } |