mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-22 21:21:33 +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]
|
||||
fn imported_func() {
|
||||
assert_eq!(
|
||||
ImportedFunc::offset_func() as usize,
|
||||
offset_of!(ImportedFunc => func).get_byte_offset(),
|
||||
);
|
||||
assert_eq!(ImportedFunc::offset_func() as usize, 0);
|
||||
|
||||
assert_eq!(
|
||||
ImportedFunc::offset_func_ctx() as usize,
|
||||
offset_of!(ImportedFunc => func_ctx).get_byte_offset(),
|
||||
);
|
||||
assert_eq!(ImportedFunc::offset_func_ctx() as usize, 8);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Reference in New Issue
Block a user