mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-09-16 02:17:07 +02:00
[svn r73] Identity expression for dynamic array and null was broken.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
module typeinfo9;
|
||||
|
||||
typedef int int_t = 42;
|
||||
|
||||
void main()
|
||||
{
|
||||
auto i = typeid(int_t).init;
|
||||
assert(i.length == int_t.sizeof);
|
||||
assert(*cast(int_t*)i.ptr == 42);
|
||||
}
|
||||
Reference in New Issue
Block a user