Skip to content

Commit

Permalink
Modified test annotations because Silicon stops after the first error
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwerhoff committed May 26, 2013
1 parent 036d05a commit 5689766
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions src/test/resources/all/basic/welldef.sil
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,47 @@ domain Test {
function func(a: Int): Int
}

method t1(this: Ref)
method t1_a(this: Ref)
{
//:: ExpectedError(insufficient.permission)
//:: ExpectedError(assignment.failed:receiver.null)
var i: Int := this.f
}

method t2(this: Ref)
method t1_b(this: Ref)
{
assume this != null
//:: ExpectedError(insufficient.permission)
var i: Int := this.f
}

method t2_a(this: Ref)
{
//:: ExpectedError(assignment.failed:receiver.null)
var i: Int := func(this.f)
}

method t2_b(this: Ref)
{
assume this != null
//:: ExpectedError(insufficient.permission)
var i: Int := func(this.f)
}

method t3(this: Ref, p2: Perm)
{
//:: ExpectedError(invalid.perm.multiplication)
var p: Perm := epsilon * p2
}

method t4(this: Ref)
method t4_a(this: Ref)
{
//:: ExpectedError(insufficient.permission)
//:: ExpectedError(assignment.failed:receiver.null)
this.f := 1
}

method t4_b(this: Ref)
{
assume this != null
//:: ExpectedError(insufficient.permission)
this.f := 1
}

0 comments on commit 5689766

Please sign in to comment.