MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / test_instantiate_shared_memory

Function test_instantiate_shared_memory

tests/all/threads.rs:45–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43#[test]
44#[cfg_attr(miri, ignore)]
45fn test_instantiate_shared_memory() -> Result<()> {
46 let wat = r#"(module (memory 1 1 shared))"#;
47 let Some(engine) = engine() else {
48 return Ok(());
49 };
50 let module = Module::new(&engine, wat)?;
51 let mut store = Store::new(&engine, ());
52 let _instance = Instance::new(&mut store, &module, &[])?;
53 Ok(())
54}
55
56#[test]
57#[cfg_attr(miri, ignore)]

Callers

nothing calls this directly

Calls 3

OkFunction · 0.85
engineFunction · 0.70
newFunction · 0.50

Tested by

no test coverage detected