mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-20 14:53:14 +01:00
[svn r294] Fixed some more of the old tests.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
module nested10;
|
||||
|
||||
extern(C) int printf(char*, ...);
|
||||
|
||||
void main()
|
||||
{
|
||||
int j = 3;
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
module nested11;
|
||||
|
||||
extern(C) int printf(char*, ...);
|
||||
|
||||
void main()
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
module nested12;
|
||||
|
||||
extern(C) int printf(char*, ...);
|
||||
|
||||
void main()
|
||||
{
|
||||
func();
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user