[svn r120] ModuleInfo implementation is now almost complete.

Fixed some nasty static array-initializer bugs.
Fixed bug in DtoArrayLen and DtoArrayPtr for full slices of static arrays.
This commit is contained in:
Tomas Lindquist Olsen
2007-11-25 18:55:52 +01:00
parent c08b0918cc
commit cb37aab93b
12 changed files with 331 additions and 176 deletions
+5 -2
View File
@@ -1,7 +1,10 @@
module bug51;
const ubyte[3] arr1 = 0;
const ubyte[3] arr2 = [0];
const ubyte[3] arr1 = 1;
const ubyte[3] arr2 = [1];
const ubyte[3] arr3 = [1:1];
void main()
{
assert(arr1 == [cast(ubyte)1,1,1][]);
assert(arr2 == [cast(ubyte)1,0,0][]);
assert(arr3 == [cast(ubyte)0,1,0][]);
}
+27 -2
View File
@@ -1,11 +1,36 @@
module moduleinfo1;
// has static this
import std.outofmemory;
static this()
{
}
static this()
{
}
static ~this()
{
}
static ~this()
{
}
unittest
{
}
class C
{
}
void main()
class D : C
{
C c;
}
void main()
{
}