diff --git a/tests/expected/function-contract/modifies/refcell_fixme.rs b/tests/expected/function-contract/modifies/refcell_fixme.rs new file mode 100644 index 000000000000..8ae9cb390eb7 --- /dev/null +++ b/tests/expected/function-contract/modifies/refcell_fixme.rs @@ -0,0 +1,13 @@ +use std::cell::RefCell; +use std::ops::Deref; + +#[kani::modifies(cell.borrow().deref())] +fn modifies_ref_cell(cell: &RefCell) { + *cell.borrow_mut() = 100; +} + +#[kani::proof_for_contract(modifies_ref_cell)] +fn check_harness() { + let rc = RefCell::new(0); + modifies_ref_cell(&rc); +}