summaryrefslogtreecommitdiff
path: root/Test/linear
diff options
context:
space:
mode:
Diffstat (limited to 'Test/linear')
-rw-r--r--Test/linear/Answer4
-rw-r--r--Test/linear/f3.bpl8
-rw-r--r--Test/linear/runtest.bat2
3 files changed, 13 insertions, 1 deletions
diff --git a/Test/linear/Answer b/Test/linear/Answer
index 678579ea..e6df2e87 100644
--- a/Test/linear/Answer
+++ b/Test/linear/Answer
@@ -42,3 +42,7 @@ Execution trace:
f2.bpl(15,4): anon0
Boogie program verifier finished with 0 verified, 1 error
+
+-------------------- f3.bpl --------------------
+
+Boogie program verifier finished with 2 verified, 0 errors
diff --git a/Test/linear/f3.bpl b/Test/linear/f3.bpl
new file mode 100644
index 00000000..a375338c
--- /dev/null
+++ b/Test/linear/f3.bpl
@@ -0,0 +1,8 @@
+procedure A() {}
+
+procedure B({:linear ""} tid:int) returns({:linear ""} tid':int)
+{
+ tid' := tid;
+ call A();
+}
+
diff --git a/Test/linear/runtest.bat b/Test/linear/runtest.bat
index 3ccd660c..c8d3dc62 100644
--- a/Test/linear/runtest.bat
+++ b/Test/linear/runtest.bat
@@ -9,7 +9,7 @@ for %%f in (typecheck.bpl) do (
%BGEXE% %* /nologo /noinfer /typeEncoding:m /useArrayTheory %%f
)
-for %%f in (list.bpl allocator.bpl f1.bpl f2.bpl) do (
+for %%f in (list.bpl allocator.bpl f1.bpl f2.bpl f3.bpl) do (
echo.
echo -------------------- %%f --------------------
%BGEXE% %* /nologo /noinfer /typeEncoding:m /useArrayTheory /doModSetAnalysis %%f