summaryrefslogtreecommitdiff
path: root/Test/dafny2
diff options
context:
space:
mode:
authorGravatar Nadia Polikarpova <nadia.polikarpova@gmail.com>2012-09-19 13:58:23 +0200
committerGravatar Nadia Polikarpova <nadia.polikarpova@gmail.com>2012-09-19 13:58:23 +0200
commit3c789c793b917550c4d752307fc0e7496591fffe (patch)
tree173af4bdd5eb13d24cf1a5cb58817a4f0cef99a6 /Test/dafny2
parent77a38428ffe11806c8bc61d2fbb324d1523de635 (diff)
Allow empty calc statements
Diffstat (limited to 'Test/dafny2')
-rw-r--r--Test/dafny2/Calculations.dfy6
1 files changed, 6 insertions, 0 deletions
diff --git a/Test/dafny2/Calculations.dfy b/Test/dafny2/Calculations.dfy
index 8e3a4426..c48f2000 100644
--- a/Test/dafny2/Calculations.dfy
+++ b/Test/dafny2/Calculations.dfy
@@ -210,3 +210,9 @@ ghost method Window(xs: List, ys: List)
true;
}
}
+
+// Empty calculations are also allowed, but they don't generate any Boogie code.
+ghost method Empty()
+{
+ calc {}
+}