test a few things

This commit is contained in:
dcode
2019-03-09 02:04:08 +01:00
parent 4f1a971a61
commit 0c537c3363
6 changed files with 6803 additions and 26 deletions

View File

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