mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-19 06:13:14 +01:00
Get rid of old phobos-based tests.
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
import std.stdio;
|
||||
class Foo {}
|
||||
void func3()
|
||||
{
|
||||
Foo[1] test=[new Foo];
|
||||
writefln(test);
|
||||
}
|
||||
void main() {
|
||||
func3();
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
module bug58;
|
||||
import std.stdio;
|
||||
void main()
|
||||
{
|
||||
int[16] arr = [1,16,2,15,3,14,4,13,5,12,6,11,7,10,8,9];
|
||||
writefln("arr = ",arr);
|
||||
arr.sort;
|
||||
writefln("arr.sort = ",arr);
|
||||
assert(arr == [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]);
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
module bug66;
|
||||
import std.stdio;
|
||||
class Scene { string name() { return "Scene"; } }
|
||||
class Group : Scene { this () { } }
|
||||
void main() { writefln((new Group).name); }
|
||||
@@ -1,20 +0,0 @@
|
||||
module bug71;
|
||||
|
||||
void main()
|
||||
{
|
||||
static TypeInfo skipCI(TypeInfo valti)
|
||||
{
|
||||
while (1)
|
||||
{
|
||||
if (valti.classinfo.name.length == 18 &&
|
||||
valti.classinfo.name[9..18] == "Invariant")
|
||||
valti = (cast(TypeInfo_Invariant)valti).next;
|
||||
else if (valti.classinfo.name.length == 14 &&
|
||||
valti.classinfo.name[9..14] == "Const")
|
||||
valti = (cast(TypeInfo_Const)valti).next;
|
||||
else
|
||||
break;
|
||||
}
|
||||
return valti;
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
module bug79;
|
||||
import std.c.linux.linux;
|
||||
void main()
|
||||
{
|
||||
timespec ts;
|
||||
ts.tv_nsec -= 1;
|
||||
//auto t = ts.tv_nsec - 1;
|
||||
//t -= 1;
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
module imports2;
|
||||
import std.stdio;
|
||||
|
||||
void main() {
|
||||
writefln("Hello world!"[]);
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
module stdiotest;
|
||||
|
||||
import std.stdio;
|
||||
|
||||
T typed(T)(T x)
|
||||
{
|
||||
return x;
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
/*char[] str = "hello";
|
||||
writefln(str);
|
||||
|
||||
writefln("hello world");*/
|
||||
|
||||
char[] fmt = "%s";
|
||||
writefln(2.0f);
|
||||
|
||||
/*{writefln(typed!(byte)(1));}
|
||||
{writefln(typed!(short)(2));}
|
||||
{writefln(typed!(int)(3));}
|
||||
{writefln(typed!(long)(-4));}
|
||||
{writefln(typed!(ulong)(5));}
|
||||
{writefln("%f", typed!(float)(6));}
|
||||
{writefln("%f", typed!(double)(7));}
|
||||
{writefln("%f", typed!(real)(8));}*/
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
module stdiotest2;
|
||||
import std.stdio;
|
||||
void main()
|
||||
{
|
||||
int[4] v = [1,2,3,4];
|
||||
{
|
||||
writefln("%s", v);
|
||||
{
|
||||
int[] dv = v;
|
||||
{writefln("%s", dv);}
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
writefln(v);
|
||||
{
|
||||
//int[] dv = v;
|
||||
//{writefln(dv);}
|
||||
}
|
||||
}
|
||||
//writefln(1,2,3,4.56,"hello",v);
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
module strings2;
|
||||
|
||||
import std.string;
|
||||
import std.stdio;
|
||||
|
||||
void main()
|
||||
{
|
||||
int i = 32;
|
||||
auto str = format(i);
|
||||
writefln(str);
|
||||
|
||||
long l = 123123;
|
||||
str = format(l);
|
||||
writefln(str);
|
||||
}
|
||||
Reference in New Issue
Block a user