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

Function test_pop_i32_const

winch/codegen/src/stack.rs:489–496  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

487
488 #[test]
489 fn test_pop_i32_const() {
490 let mut stack = Stack::new();
491 stack.push(Val::i32(33i32));
492 assert_eq!(33, stack.pop_i32_const().unwrap());
493
494 stack.push(Val::local(10, WasmValType::I32));
495 assert!(stack.pop_i32_const().is_none());
496 }
497
498 #[test]
499 fn test_pop_reg() {

Callers

nothing calls this directly

Calls 2

newFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected