mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-26 00:55:21 +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:
14
tests/mini/typeinfo7.d
Normal file
14
tests/mini/typeinfo7.d
Normal file
@@ -0,0 +1,14 @@
|
||||
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()");
|
||||
}
|
||||
Reference in New Issue
Block a user