view test/typeinfo7.d @ 303:4aa2b6753059 trunk

[svn r324] Small indentation fixes. Added end of line to complex.cpp.
author ChristianK
date Wed, 25 Jun 2008 20:42:30 +0200
parents d9d5d59873d8
children
line wrap: on
line source

module typeinfo7;
extern(C) int printf(char*, ...);
int func(long)
{
    return 0;
}

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