summaryrefslogtreecommitdiff
path: root/Test/codeexpr
diff options
context:
space:
mode:
Diffstat (limited to 'Test/codeexpr')
-rw-r--r--Test/codeexpr/codeExprBug.bpl15
-rw-r--r--Test/codeexpr/codeExprBug.bpl.expect2
2 files changed, 17 insertions, 0 deletions
diff --git a/Test/codeexpr/codeExprBug.bpl b/Test/codeexpr/codeExprBug.bpl
new file mode 100644
index 00000000..4eb86789
--- /dev/null
+++ b/Test/codeexpr/codeExprBug.bpl
@@ -0,0 +1,15 @@
+// RUN: %boogie "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+procedure p() returns ($r: int);
+ ensures |{ $bb0: return ($r == 1); }|;
+
+implementation p() returns ($x: int)
+{
+ $x := 1;
+ return;
+}
+
+procedure q()
+ ensures |{ var $b: bool; $0: $b := true; goto $1; $1: return $b; }|;
+{
+}
diff --git a/Test/codeexpr/codeExprBug.bpl.expect b/Test/codeexpr/codeExprBug.bpl.expect
new file mode 100644
index 00000000..3de74d3e
--- /dev/null
+++ b/Test/codeexpr/codeExprBug.bpl.expect
@@ -0,0 +1,2 @@
+
+Boogie program verifier finished with 2 verified, 0 errors