view test/typeinfo.d @ 300:7b1040c76dd2 trunk

[svn r321] Fix bug in argument remapping functions.
author ChristianK
date Tue, 24 Jun 2008 22:27:55 +0200
parents d9d5d59873d8
children
line wrap: on
line source

module typeinfo;
extern(C) int printf(char*, ...);

void main()
{
    auto ti = typeid(int);
    char[] str = ti.toString();
    printf("%.*s\n", str.length, str.ptr);
    assert(str == "int");
}