Skip to content

Commit

Permalink
Forgot to stage after renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
JustusAdam committed Feb 2, 2024
1 parent 75a554d commit edd7bf8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/expected/function-contract/modifies/refcell_fixme.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
use std::cell::RefCell;
use std::ops::Deref;

#[kani::modifies(cell.borrow().deref())]
fn modifies_ref_cell(cell: &RefCell<u32>) {
*cell.borrow_mut() = 100;
}

#[kani::proof_for_contract(modifies_ref_cell)]
fn check_harness() {
let rc = RefCell::new(0);
modifies_ref_cell(&rc);
}

0 comments on commit edd7bf8

Please sign in to comment.