summaryrefslogtreecommitdiff
path: root/Test/dafny0/Includee.dfy
diff options
context:
space:
mode:
authorGravatar Bryan Parno <parno@microsoft.com>2013-12-10 13:41:50 -0800
committerGravatar Bryan Parno <parno@microsoft.com>2013-12-10 13:41:50 -0800
commit195097dc1353946f524f2518453bd356a09f6681 (patch)
treeffeb46c86abb50fa8f2df26dddd9526880f39bd1 /Test/dafny0/Includee.dfy
parent982e64871949040b3d766c4d36f9ccdf5f506f7a (diff)
Add support for the "include" keyword, which accepts a (possibly relative) path
to another Dafny file. That file's functions and methods are included but not checked. This is intended to support incremental verification on a per-file basis.
Diffstat (limited to 'Test/dafny0/Includee.dfy')
-rw-r--r--Test/dafny0/Includee.dfy10
1 files changed, 10 insertions, 0 deletions
diff --git a/Test/dafny0/Includee.dfy b/Test/dafny0/Includee.dfy
new file mode 100644
index 00000000..303e8dd4
--- /dev/null
+++ b/Test/dafny0/Includee.dfy
@@ -0,0 +1,10 @@
+
+method m_unproven(x:int) returns (y:int)
+ ensures y == 2*x;
+{
+}
+
+function f(x:int) : int
+{
+ 2*x
+}