diff options
author | Rustan Leino <leino@microsoft.com> | 2013-05-21 16:52:27 -0700 |
---|---|---|
committer | Rustan Leino <leino@microsoft.com> | 2013-05-21 16:52:27 -0700 |
commit | 9f87e7b7121a8003ae863dbe55b32a4118c578a3 (patch) | |
tree | e1c086651499b2e04cdf08d83b878e72652ffb6b /Test/dafny0/Basics.dfy | |
parent | 196cba780116c93e4c39afa85defefa28d13bd3f (diff) |
Fixed some omitted cases in Substitute (and added "assume false" to catch any other, later)
Diffstat (limited to 'Test/dafny0/Basics.dfy')
-rw-r--r-- | Test/dafny0/Basics.dfy | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Test/dafny0/Basics.dfy b/Test/dafny0/Basics.dfy index b451cdf1..6b1b366d 100644 --- a/Test/dafny0/Basics.dfy +++ b/Test/dafny0/Basics.dfy @@ -249,3 +249,16 @@ method notQuiteSwap3(c: CC, d: CC) c.x, d.x := 4, c.y;
c.x, c.y := 3, c.y;
}
+
+// ---------------------------
+// regression tests of things that were once errors
+
+method InlineMultisetFormingExpr(s: seq<int>)
+ ensures MSFE(s);
+predicate MSFE(s: seq<int>)
+{
+ multiset(s) == multiset(s)
+}
+
+copredicate CoPredTypeCheck(n: int)
+ requires n != 0;
|