Mercurial > projects > ldc
changeset 273:25fa34e899e9 trunk
[svn r294] Fixed some more of the old tests.
author | lindquist |
---|---|
date | Wed, 18 Jun 2008 23:29:14 +0200 |
parents | 94ef6d63f7bb |
children | 9f228c1e5311 |
files | test/moduleinfo2.d test/nested10.d test/nested11.d test/nested12.d test/sqrts.d |
diffstat | 5 files changed, 10 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/test/moduleinfo2.d Wed Jun 18 22:27:02 2008 +0200 +++ b/test/moduleinfo2.d Wed Jun 18 23:29:14 2008 +0200 @@ -4,11 +4,9 @@ void main() { - ModuleInfo[] mi = ModuleInfo.modules(); - printf("listing %u modules:\n"); - foreach(m; mi) + printf("listing modules:\n"); + foreach(m; ModuleInfo) { - printf(" %s\n", m.name.length, m.name.ptr); + printf(" %.*s\n", m.name.length, m.name.ptr); } - assert(mi.length > 50); }
--- a/test/nested10.d Wed Jun 18 22:27:02 2008 +0200 +++ b/test/nested10.d Wed Jun 18 23:29:14 2008 +0200 @@ -1,5 +1,7 @@ module nested10; +extern(C) int printf(char*, ...); + void main() { int j = 3;
--- a/test/nested11.d Wed Jun 18 22:27:02 2008 +0200 +++ b/test/nested11.d Wed Jun 18 23:29:14 2008 +0200 @@ -1,5 +1,7 @@ module nested11; +extern(C) int printf(char*, ...); + void main() { int i;