Mercurial > projects > ldc
view test/typeinfo4.d @ 154:5cb946f323d2 trunk
[svn r160] Added cleaned version of dmd's linux exception runtime
author | ChristianK |
---|---|
date | Tue, 25 Mar 2008 18:25:24 +0100 |
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); }