summaryrefslogtreecommitdiff
path: root/Test/dafny4/Bug134.dfy
diff options
context:
space:
mode:
authorGravatar qunyanm <unknown>2016-02-11 16:08:27 -0800
committerGravatar qunyanm <unknown>2016-02-11 16:08:27 -0800
commit15755e486cfe715f15ed7e71938d07800a98a7f2 (patch)
tree719dcd8cfbd651b0087bb948c77d83335ab72325 /Test/dafny4/Bug134.dfy
parentabfe9c32f0b33274511014dd4f498702bbcf0d7e (diff)
Fix issue 134. Wrong variable was used in the loop.
Diffstat (limited to 'Test/dafny4/Bug134.dfy')
-rw-r--r--Test/dafny4/Bug134.dfy23
1 files changed, 23 insertions, 0 deletions
diff --git a/Test/dafny4/Bug134.dfy b/Test/dafny4/Bug134.dfy
new file mode 100644
index 00000000..fff6c36a
--- /dev/null
+++ b/Test/dafny4/Bug134.dfy
@@ -0,0 +1,23 @@
+// RUN: %dafny /compile:0 /ironDafny "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+module NativeTypes {
+ newtype{:nativeType "ushort"} uint16 = i:int | 0 <= i < 0x10000
+}
+
+abstract module AbstractModuleA
+{
+ import opened NativeTypes
+ datatype T = T(i:uint16)
+}
+
+abstract module AbstractModuleB
+{
+ import opened A as AbstractModuleA
+}
+
+abstract module AbstractModuleC
+{
+ import opened B as AbstractModuleB
+}
+