summaryrefslogtreecommitdiff
path: root/Test/commandline/multiple_procs_verify_one.bpl
diff options
context:
space:
mode:
Diffstat (limited to 'Test/commandline/multiple_procs_verify_one.bpl')
-rw-r--r--Test/commandline/multiple_procs_verify_one.bpl22
1 files changed, 22 insertions, 0 deletions
diff --git a/Test/commandline/multiple_procs_verify_one.bpl b/Test/commandline/multiple_procs_verify_one.bpl
new file mode 100644
index 00000000..5eaef4b1
--- /dev/null
+++ b/Test/commandline/multiple_procs_verify_one.bpl
@@ -0,0 +1,22 @@
+// RUN: %boogie -proc:foo "%s" > "%t"
+// RUN: %OutputCheck --file-to-check "%t" "%s"
+// CHECK-L: Boogie program verifier finished with 1 verified, 0 errors
+
+// Only this procedure should be verified, the others should be ignored
+procedure foo()
+{
+ assume true;
+}
+
+// An old version of Boogie just checked if the name passed to ``-proc:``
+// occurs somewhere in procedure name which would cause it to try and also
+// verify the procedures below.
+procedure foo2()
+{
+ assert false;
+}
+
+procedure function_foo()
+{
+ assert false;
+}