summaryrefslogtreecommitdiff
path: root/Test/dafny4
diff options
context:
space:
mode:
authorGravatar qunyanm <unknown>2015-04-21 14:35:41 -0700
committerGravatar qunyanm <unknown>2015-04-21 14:35:41 -0700
commit9d0cd81f47bb4fb27cdc4d0cf8442d4de7473cce (patch)
tree53f154dfd6bd66fa37b4f90854631ae431064b3c /Test/dafny4
parent9c230b0c9037c30879e865aa5b6d994fee5820ff (diff)
Fix issue #70. Check the ctors for equality before marking them as duplicates.
Diffstat (limited to 'Test/dafny4')
-rw-r--r--Test/dafny4/Bug70.dfy20
-rw-r--r--Test/dafny4/Bug70.dfy.expect2
2 files changed, 22 insertions, 0 deletions
diff --git a/Test/dafny4/Bug70.dfy b/Test/dafny4/Bug70.dfy
new file mode 100644
index 00000000..a54ef46d
--- /dev/null
+++ b/Test/dafny4/Bug70.dfy
@@ -0,0 +1,20 @@
+// RUN: %dafny /compile:0 "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+module M1
+{
+ datatype d = D()
+}
+
+module M2 { import opened M1 }
+module M3 { import opened M1 }
+
+module M4
+{
+ import opened M2
+ import opened M3
+ method Main()
+ {
+ var x := D();
+ }
+} \ No newline at end of file
diff --git a/Test/dafny4/Bug70.dfy.expect b/Test/dafny4/Bug70.dfy.expect
new file mode 100644
index 00000000..069e7767
--- /dev/null
+++ b/Test/dafny4/Bug70.dfy.expect
@@ -0,0 +1,2 @@
+
+Dafny program verifier finished with 2 verified, 0 errors