summaryrefslogtreecommitdiff
path: root/Test/dafny0/OpaqueFunctions.dfy
diff options
context:
space:
mode:
authorGravatar Rustan Leino <unknown>2013-12-17 15:15:53 -0800
committerGravatar Rustan Leino <unknown>2013-12-17 15:15:53 -0800
commit69690cc00356be153b2598cce3abb228d1cc5a33 (patch)
tree3e1630a9dae215bd59610098e0d0a0425f280f65 /Test/dafny0/OpaqueFunctions.dfy
parent968d203bfd0254b496f93664303e84da9795d170 (diff)
Don't expand {:opaque} for inherited functions. (Note, more design is still needed to handle the combination of opaque and refinement well.)
Diffstat (limited to 'Test/dafny0/OpaqueFunctions.dfy')
-rw-r--r--Test/dafny0/OpaqueFunctions.dfy9
1 files changed, 9 insertions, 0 deletions
diff --git a/Test/dafny0/OpaqueFunctions.dfy b/Test/dafny0/OpaqueFunctions.dfy
index 9879c66b..6bff4ef3 100644
--- a/Test/dafny0/OpaqueFunctions.dfy
+++ b/Test/dafny0/OpaqueFunctions.dfy
@@ -142,3 +142,12 @@ module OpaqueFunctionsAreNotInlined {
assert F(x);
}
}
+
+// --------------------------------- opaque and refinement
+
+module M0 {
+ function {:opaque} F(): int
+ { 12 }
+}
+module M1 refines M0 {
+}