Skip to content

Commit

Permalink
Merge pull request viperproject#824 from viperproject/meilers_test_822
Browse files Browse the repository at this point in the history
Adding test for PR viperproject#822
  • Loading branch information
marcoeilers authored Mar 25, 2024
2 parents 9e3d0f8 + 344ec32 commit bda86d2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/test/resources/moreCompleteExhale/0822.vpr
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

field val : Int

method test(x: Ref, y: Ref) {
inhale acc(x.val) && acc(y.val, x != y ? write : none)
x.val := 4
y.val := 3
//:: ExpectedOutput(assert.failed:assertion.false)
assert x.val == 4
}

0 comments on commit bda86d2

Please sign in to comment.