annotate tests/mini/typeinfo.d @ 1651:cb960b882ca3 tip

bindings were moved to dsource.org/projects/bindings/
author Moritz Warning <moritzwarning@web.de>
date Thu, 20 May 2010 20:05:03 +0200
parents 1bb99290e03a
children
rev   line source
lindquist@1 1 module typeinfo;
lindquist@270 2 extern(C) int printf(char*, ...);
lindquist@1 3
lindquist@1 4 void main()
lindquist@1 5 {
lindquist@6 6 auto ti = typeid(int);
lindquist@52 7 char[] str = ti.toString();
lindquist@52 8 printf("%.*s\n", str.length, str.ptr);
lindquist@52 9 assert(str == "int");
lindquist@1 10 }