mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-09-19 11:50:18 +02:00
[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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");
|
||||
}
|
||||
Reference in New Issue
Block a user