[svn r57] Added most basic TypeInfo (rebuild lphobos).

Fixed some SymOffExp bugs.
Added another typeinfo test case.
This commit is contained in:
Tomas Lindquist Olsen
2007-10-23 07:16:02 +02:00
parent 5fee3fc8b7
commit b72a4fa645
14 changed files with 533 additions and 4 deletions

14
test/typeinfo2.d Normal file
View File

@@ -0,0 +1,14 @@
module typeinfo2;
void main()
{
auto ti = typeid(float);
float f = 2.5;
hash_t fh = ti.getHash(&f);
assert(ti.next is null);
float g = 4.0;
ti.swap(&f,&g);
assert(f == 4.0 && g == 2.5);
assert(fh == *cast(uint*)(&g));
assert(!ti.flags);
}