We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
LdTrue
LdFalse
1 parent cc4c43e commit 88a9273Copy full SHA for 88a9273
crates/move-bytecode-verifier/src/type_safety_tests/mod.rs
@@ -594,3 +594,18 @@ fn test_ld_integers_ok() {
594
}
595
596
597
+
598
+#[test]
599
+fn test_ld_true_false_ok() {
600
+ for instr in vec![
601
+ Bytecode::LdTrue,
602
+ Bytecode::LdFalse,
603
+ ] {
604
+ let code = vec![instr];
605
+ let module = make_module(code);
606
+ let fun_context = get_fun_context(&module);
607
+ let result = type_safety::verify(&module, &fun_context, &mut DummyMeter);
608
+ assert!(result.is_ok());
609
+ }
610
+}
611
0 commit comments