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

Function nop

cranelift/src/interpret.rs:157–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155
156 #[test]
157 fn nop() {
158 let code = String::from(
159 "
160 function %test() -> i8 {
161 block0:
162 nop
163 v1 = iconst.i8 -1
164 v2 = iconst.i8 42
165 return v1
166 }
167 ; run: %test() == -1
168 ",
169 );
170 FileInterpreter::from_inline_code(code).run().unwrap()
171 }
172
173 #[test]
174 fn filetests() {

Callers

nothing calls this directly

Calls 3

fromFunction · 0.85
unwrapMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected