summaryrefslogtreecommitdiff
path: root/Test/dafny0/CoResolution.dfy
diff options
context:
space:
mode:
authorGravatar Rustan Leino <unknown>2014-02-23 22:55:30 -0800
committerGravatar Rustan Leino <unknown>2014-02-23 22:55:30 -0800
commit92b39104cfc64750e79db1344836a71334c67939 (patch)
tree683b3aad3633d862b71c76b73aa655b8ad078064 /Test/dafny0/CoResolution.dfy
parente2f9a3153a2e80c055f9a6d1a2abf8ba9c787009 (diff)
Fixed bugs in co-call checks
Diffstat (limited to 'Test/dafny0/CoResolution.dfy')
-rw-r--r--Test/dafny0/CoResolution.dfy16
1 files changed, 16 insertions, 0 deletions
diff --git a/Test/dafny0/CoResolution.dfy b/Test/dafny0/CoResolution.dfy
index 1219db90..14da4493 100644
--- a/Test/dafny0/CoResolution.dfy
+++ b/Test/dafny0/CoResolution.dfy
@@ -169,3 +169,19 @@ module CallGraph {
5
}
}
+
+module CrashRegression {
+ codatatype Stream<T> = Cons(T, Stream)
+
+ // The following functions (where A ends up being the representative in the
+ // SCC and B, which is also in the same SCC, has no body) once crashed the
+ // resolver.
+ function A(): Stream
+ {
+ B()
+ }
+ function B(): Stream
+ ensures A() == S();
+
+ function S(): Stream
+}