diff options
Diffstat (limited to 'Test')
-rw-r--r-- | Test/dafny4/Bug120.dfy | 11 | ||||
-rw-r--r-- | Test/dafny4/Bug120.dfy.expect | 2 |
2 files changed, 13 insertions, 0 deletions
diff --git a/Test/dafny4/Bug120.dfy b/Test/dafny4/Bug120.dfy new file mode 100644 index 00000000..73553f2a --- /dev/null +++ b/Test/dafny4/Bug120.dfy @@ -0,0 +1,11 @@ +// RUN: %dafny /compile:0 /noNLarith "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+function G(n: nat): nat
+{
+ if n == 0 then 5 else G(n-1)
+}
+
+method Test() {
+ assert G(10) == 5;
+}
\ No newline at end of file diff --git a/Test/dafny4/Bug120.dfy.expect b/Test/dafny4/Bug120.dfy.expect new file mode 100644 index 00000000..52595bf9 --- /dev/null +++ b/Test/dafny4/Bug120.dfy.expect @@ -0,0 +1,2 @@ +
+Dafny program verifier finished with 3 verified, 0 errors
|