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

Function nop

cranelift/src/run.rs:133–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131
132 #[test]
133 fn nop() {
134 if cranelift_native::builder().is_err() {
135 return;
136 }
137 let code = String::from(
138 "
139 function %test() -> i8 {
140 block0:
141 nop
142 v1 = iconst.i8 -1
143 return v1
144 }
145 ; run
146 ",
147 );
148 run_file_contents(code).unwrap()
149 }
150}

Callers 1

gen_nopMethod · 0.50

Calls 4

fromFunction · 0.85
run_file_contentsFunction · 0.85
builderFunction · 0.50
unwrapMethod · 0.45

Tested by

no test coverage detected