summaryrefslogtreecommitdiff
path: root/Test/civl
diff options
context:
space:
mode:
Diffstat (limited to 'Test/civl')
-rw-r--r--Test/civl/chris4.bpl16
-rw-r--r--Test/civl/chris4.bpl.expect5
2 files changed, 21 insertions, 0 deletions
diff --git a/Test/civl/chris4.bpl b/Test/civl/chris4.bpl
new file mode 100644
index 00000000..7a19f975
--- /dev/null
+++ b/Test/civl/chris4.bpl
@@ -0,0 +1,16 @@
+// RUN: %boogie -noinfer -typeEncoding:m -useArrayTheory "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+procedure{:yields}{:layer 94,95} Test()
+{
+ yield;
+ L:
+ yield;
+}
+
+procedure{:yields}{:layer 94,95} Test2()
+{
+ yield;
+ assert{:layer 94} 2 + 2 == 3;
+ L:
+ yield;
+}
diff --git a/Test/civl/chris4.bpl.expect b/Test/civl/chris4.bpl.expect
new file mode 100644
index 00000000..d3d00979
--- /dev/null
+++ b/Test/civl/chris4.bpl.expect
@@ -0,0 +1,5 @@
+chris4.bpl(13,3): Error BP5001: This assertion might not hold.
+Execution trace:
+ chris4.bpl(12,3): anon0
+
+Boogie program verifier finished with 1 verified, 1 error