diff options
Diffstat (limited to 'Test/dafny4/Bug62.dfy')
-rw-r--r-- | Test/dafny4/Bug62.dfy | 27 |
1 files changed, 27 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";
+ }
+}
|