summaryrefslogtreecommitdiff
path: root/Test
diff options
context:
space:
mode:
authorGravatar qunyanm <unknown>2016-01-25 11:27:26 -0800
committerGravatar qunyanm <unknown>2016-01-25 11:27:26 -0800
commit9cf02f9daaba01d48621a932c4984753337fbbc5 (patch)
treee44443c6fd6ea2328fb06aba697898c84ca43d40 /Test
parent8f244896640bae196070aa8b2bfe0b2f0be24e2a (diff)
Fix issue 122. Only generate autoTriggers for QuantifierExpr that are not
empty.
Diffstat (limited to 'Test')
-rw-r--r--Test/dafny4/Bug122.dfy17
-rw-r--r--Test/dafny4/Bug122.dfy.expect2
2 files changed, 19 insertions, 0 deletions
diff --git a/Test/dafny4/Bug122.dfy b/Test/dafny4/Bug122.dfy
new file mode 100644
index 00000000..adbee30d
--- /dev/null
+++ b/Test/dafny4/Bug122.dfy
@@ -0,0 +1,17 @@
+// RUN: %dafny /compile:0 /autoTriggers:1 "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+method Try (a:int)
+{
+ forall
+ ensures a == a;
+ {
+ }
+}
+
+
+
+
+
+
+
diff --git a/Test/dafny4/Bug122.dfy.expect b/Test/dafny4/Bug122.dfy.expect
new file mode 100644
index 00000000..069e7767
--- /dev/null
+++ b/Test/dafny4/Bug122.dfy.expect
@@ -0,0 +1,2 @@
+
+Dafny program verifier finished with 2 verified, 0 errors