fix(runtime-core) Same bug with field-offset as before.

It will be fixed in a following PR.
This commit is contained in:
Ivan Enderlin
2019-11-12 15:17:36 +01:00
parent 5d6c74bfaa
commit a1e8a8f0db

View File

@ -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]