Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jcp19 committed Sep 21, 2023
1 parent a01eda6 commit 9ed226d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ trait Addressability extends BaseProperty { this: TypeInfoImpl =>
case p => Violation.violation(s"Unexpected invoke resolve, got $p")
}
case _: PLength | _: PCapacity => AddrMod.callResult
case _: PLet => AddrMod.rValue
case _: PSliceExp => AddrMod.sliceExpr
case _: PTypeAssertion => AddrMod.typeAssertionResult
case _: PReceive => AddrMod.receive
Expand Down
4 changes: 4 additions & 0 deletions src/test/resources/regressions/features/let/let_simple.gobra
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ func (a *A) g(x int) {
fold a.Mem()
}

pred Q(x int) {
true
}

requires acc(x)
requires Q(y)
func impureLets(x *int, y int) {
Expand Down

0 comments on commit 9ed226d

Please sign in to comment.