1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use super::*; #[test] #[cfg_attr(miri, ignore)] fn const_prop() { let wasm = r" (module (func (result i32) ref.null func ref.is_null ) ) "; TranslationTest::from_wat(wasm) .expect_func_instrs([Instruction::return_imm32(1_i32)]) .run() }