diff options
Diffstat (limited to 'Test')
-rw-r--r-- | Test/dafny4/Bug62.dfy | 27 | ||||
-rw-r--r-- | Test/dafny4/Bug62.dfy.expect | 2 |
2 files changed, 29 insertions, 0 deletions
diff --git a/Test/dafny4/Bug62.dfy b/Test/dafny4/Bug62.dfy new file mode 100644 index 00000000..016ee117 --- /dev/null +++ b/Test/dafny4/Bug62.dfy @@ -0,0 +1,27 @@ +// RUN: %dafny /compile:3 "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+class C {
+ constructor C() { }
+ method Main() // not Main since the enclosing class has a constructor.
+ {
+ print "hello, I'm running ... in C\n";
+ }
+}
+
+class D {
+ method Main() // not Main since it has modifies clause.
+ modifies this;
+ {
+ print "hello, I'm running ... in D\n";
+ }
+}
+
+
+class E {
+ static method Main() // not Main since it has requires clause.
+ requires true;
+ {
+ print "hello, I'm running ... in E\n";
+ }
+}
diff --git a/Test/dafny4/Bug62.dfy.expect b/Test/dafny4/Bug62.dfy.expect new file mode 100644 index 00000000..42fd56a5 --- /dev/null +++ b/Test/dafny4/Bug62.dfy.expect @@ -0,0 +1,2 @@ +
+Dafny program verifier finished with 8 verified, 0 errors
|