Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bytecodealliance
GitHub Repository: bytecodealliance/wasmtime
Path: blob/main/pulley/tests/all/main.rs
1692 views
1
#[cfg(all(feature = "disas", feature = "encode"))]
2
mod disas;
3
4
#[cfg(feature = "interp")]
5
mod interp;
6
7
// Test the property relied on by `crates/cranelift/src/obj.rs` when filling in
8
// the `PulleyHostcall` relocation.
9
#[test]
10
fn test_call_indirect_host_width() {
11
let mut dst = Vec::new();
12
pulley_interpreter::encode::call_indirect_host(&mut dst, 1_u8);
13
assert_eq!(dst.len(), 4);
14
assert_eq!(dst[3], 1);
15
}
16
17