diff options
Diffstat (limited to 'Test/dafny4/Bug60.dfy')
-rw-r--r-- | Test/dafny4/Bug60.dfy | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Test/dafny4/Bug60.dfy b/Test/dafny4/Bug60.dfy new file mode 100644 index 00000000..5340ad6b --- /dev/null +++ b/Test/dafny4/Bug60.dfy @@ -0,0 +1,13 @@ +// RUN: %dafny /compile:3 "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+// This method can be used to test compilation.
+method Main()
+{
+ var s := {2, 3};
+ var m := map[2 := 20, 3 := 30];
+ print (s, m), "\n";
+ print (|s|, |m|), "\n";
+ print(set s | s in m), "\n";
+ print (forall x :: x in (map [1:=10, 2:=20]) ==> x > 0), "\n";
+}
\ No newline at end of file |