view test/typeinfo4.d @ 324:c542d12017e5 trunk

[svn r345] Fixed the new moduleinfo stuff to have consistent symbol names with the D style.
author lindquist
date Thu, 10 Jul 2008 00:13:09 +0200
parents 2c3cd3596187
children
line wrap: on
line source

module typeinfo4;

void main()
{
    auto ti = typeid(void*);
    assert(ti.toString() == "void*");
    assert(ti.tsize() == size_t.sizeof);
    void* a = null;
    void* b = a + 1;
    assert(ti.compare(&a,&b) < 0);
}