[svn r294] Fixed some more of the old tests.

This commit is contained in:
Tomas Lindquist Olsen
2008-06-18 23:29:14 +02:00
parent 122ac3f195
commit af6ca8fe85
5 changed files with 10 additions and 6 deletions

View File

@@ -4,11 +4,9 @@ extern(C) int printf(char*, ...);
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);
}

View File

@@ -1,5 +1,7 @@
module nested10;
extern(C) int printf(char*, ...);
void main()
{
int j = 3;

View File

@@ -1,5 +1,7 @@
module nested11;
extern(C) int printf(char*, ...);
void main()
{
int i;

View File

@@ -1,5 +1,7 @@
module nested12;
extern(C) int printf(char*, ...);
void main()
{
func();

View File

@@ -4,7 +4,7 @@ import tango.stdc.math;
double sqrt(double d)
{
return std.c.math.sqrt(d);
return tango.stdc.math.sqrt(d);
}
void main()