annotate tests/mini/typeinfo.d @ 883:b52d5de7783f

GC defines and linkage changes.
author Christian Kamm <kamm incasoftware de>
date Thu, 08 Jan 2009 18:20:02 +0100
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 }