mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-14 23:41:30 +00:00
make it test again
This commit is contained in:
@ -28,7 +28,7 @@
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
i32.const 18
|
||||
i32.const 37
|
||||
i32.const 42
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
|
@ -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>());
|
||||
|
@ -34,7 +34,7 @@
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
i32.const 18
|
||||
i32.const 37
|
||||
i32.const 42
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
@ -58,6 +58,18 @@
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
i32.const 43
|
||||
i32.const 44
|
||||
i32.ne
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
i32.const 21
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 3 ;) (type $FUNCSIG$v)
|
||||
call $start:std/gc-integration
|
||||
|
Reference in New Issue
Block a user