mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-23 05:31:32 +00:00
fix(runtime-core) Same bug with field-offset
as before.
It will be fixed in a following PR.
This commit is contained in:
@ -838,15 +838,9 @@ mod vm_offset_tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn imported_func() {
|
fn imported_func() {
|
||||||
assert_eq!(
|
assert_eq!(ImportedFunc::offset_func() as usize, 0);
|
||||||
ImportedFunc::offset_func() as usize,
|
|
||||||
offset_of!(ImportedFunc => func).get_byte_offset(),
|
|
||||||
);
|
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(ImportedFunc::offset_func_ctx() as usize, 8);
|
||||||
ImportedFunc::offset_func_ctx() as usize,
|
|
||||||
offset_of!(ImportedFunc => func_ctx).get_byte_offset(),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
Reference in New Issue
Block a user