diff options
Diffstat (limited to 'Test')
-rw-r--r-- | Test/dafny4/Bug118.dfy | 12 | ||||
-rw-r--r-- | Test/dafny4/Bug118.dfy.expect | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/Test/dafny4/Bug118.dfy b/Test/dafny4/Bug118.dfy new file mode 100644 index 00000000..1e2dddeb --- /dev/null +++ b/Test/dafny4/Bug118.dfy @@ -0,0 +1,12 @@ +// RUN: %dafny /compile:0 "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+class Foo {
+ ghost var Repr: set<object>
+}
+
+function SeqRepr(s:seq<Foo>) : set<object>
+ reads set b | b in s
+{
+ set o,b | b in s && b != null && o in b.Repr :: o // Works if you say "set b,o | ..."
+}
\ No newline at end of file diff --git a/Test/dafny4/Bug118.dfy.expect b/Test/dafny4/Bug118.dfy.expect new file mode 100644 index 00000000..c0c48e2b --- /dev/null +++ b/Test/dafny4/Bug118.dfy.expect @@ -0,0 +1,2 @@ +
+Dafny program verifier finished with 1 verified, 0 errors
|