diff options
author | Clément Pit--Claudel <clement.pitclaudel@live.com> | 2015-08-19 22:22:54 -0700 |
---|---|---|
committer | Clément Pit--Claudel <clement.pitclaudel@live.com> | 2015-08-19 22:22:54 -0700 |
commit | 6e935875b5cfbdee8a7f6573f9f01c48db746d56 (patch) | |
tree | f5b79506ae84c908a68d2c1aa9214daa18ec652b /Test/wishlist/calc.dfy | |
parent | 8afb07fb60f9521212066fbbff233c034ee8af40 (diff) |
Add a wishlist folder to the test suite, with things that we do not support (yet!)
The curent examples include semi-bugs regarding calc statements and strings, and
stuff about sequences
Diffstat (limited to 'Test/wishlist/calc.dfy')
-rw-r--r-- | Test/wishlist/calc.dfy | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Test/wishlist/calc.dfy b/Test/wishlist/calc.dfy new file mode 100644 index 00000000..308fbb9a --- /dev/null +++ b/Test/wishlist/calc.dfy @@ -0,0 +1,17 @@ +// RUN: %dafny /compile:0 /print:"%t.print" /dprint:"%t.dprint" "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+// There is a bug in Dafny that causes the error from `L` to be reported at
+// position 0 in this file, instead of on a curly brace.
+
+lemma L()
+ ensures false {
+ calc { true; }
+}
+
+// Empty calc statements work fine, though:
+
+lemma L'()
+ ensures false {
+ calc { }
+}
|