mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-26 13:39:08 +02:00
Added CMake option to disable generation of ClassInfo.offTi arrays, defaults to OFF.
This commit is contained in:
@@ -11,7 +11,8 @@ class C
|
||||
void main()
|
||||
{
|
||||
auto c = C.classinfo;
|
||||
assert(c.offTi !is null);
|
||||
if (c.offTi !is null)
|
||||
{
|
||||
assert(c.offTi.length == 4);
|
||||
|
||||
size_t base = 2*size_t.sizeof;
|
||||
@@ -24,4 +25,5 @@ void main()
|
||||
assert(c.offTi[2].ti == typeid(long));
|
||||
assert(c.offTi[3].offset == base+16);
|
||||
assert(c.offTi[3].ti == typeid(int));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user