From 24cce2bc8b6414b6d8fd1989e4d7ce8d04a41298 Mon Sep 17 00:00:00 2001 From: qunyanm Date: Wed, 2 Dec 2015 12:43:55 -0800 Subject: Add the test for Bug88. --- Test/dafny4/Bug88.dfy | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Test/dafny4/Bug88.dfy (limited to 'Test/dafny4/Bug88.dfy') diff --git a/Test/dafny4/Bug88.dfy b/Test/dafny4/Bug88.dfy new file mode 100644 index 00000000..cab2524a --- /dev/null +++ b/Test/dafny4/Bug88.dfy @@ -0,0 +1,18 @@ +// RUN: %dafny "%s" > "%t" +// RUN: %diff "%s.expect" "%t" + +lemma T(a: int) returns (b: int) + ensures a == b +{ + calc { + a; + } +} + +lemma A(i: int) + ensures false +{ + if * { + } else { + } +} \ No newline at end of file -- cgit v1.2.3