summaryrefslogtreecommitdiff
path: root/Test/dafny0/columns.dfy
diff options
context:
space:
mode:
Diffstat (limited to 'Test/dafny0/columns.dfy')
-rw-r--r--Test/dafny0/columns.dfy12
1 files changed, 12 insertions, 0 deletions
diff --git a/Test/dafny0/columns.dfy b/Test/dafny0/columns.dfy
new file mode 100644
index 00000000..72c9ab81
--- /dev/null
+++ b/Test/dafny0/columns.dfy
@@ -0,0 +1,12 @@
+// RUN: %dafny "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+// Dafny counts columns from 0, but Boogie from one, so for a while there were small bugs with that.
+
+predicate P(x: int)
+
+static method A(x:int) requires x > 0 { // error os 's'
+ assert (forall y: int :: P(y)); // error on '('
+ assert x != 1; // error on '!'
+ assert x in {}; // error on 'i'
+}