Mercurial > projects > ldc
view tests/mini/typeinfo7.d @ 1122:c614ef596a20
Fix imports copying for out-of-source build.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 15 Mar 2009 23:04:58 +0100 |
parents | 1bb99290e03a |
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()"); }