Mercurial > projects > ldc
view test/typeinfo4.d @ 219:761c8352f494 trunk
[svn r235] rough port of GDC's inline assembler code, unfinished
author | ChristianK |
---|---|
date | Thu, 05 Jun 2008 19:22:37 +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); }