make it test again

This commit is contained in:
dcode
2019-03-09 01:06:45 +01:00
parent 0ad9d560e0
commit 4f1a971a61
5 changed files with 20 additions and 4 deletions

View File

@ -15,5 +15,7 @@ var a_ref: A | null = changetype<A>(24); // global root, nullable
var b_ref: B = changetype<B>(32); // global root, non-nullable
var i: i32 = 0;
iterateRoots((ref: usize): void => { assert(<u32>ref == ++i << 3); });
__rt_iterateroots((ref: usize): void => { assert(<u32>ref == ++i << 3); });
assert(i == 4);
assert(__rt_classid<A>() != __rt_classid<B>());