summaryrefslogtreecommitdiff
path: root/Test/codeexpr/codeExprBug.bpl
diff options
context:
space:
mode:
Diffstat (limited to 'Test/codeexpr/codeExprBug.bpl')
-rw-r--r--Test/codeexpr/codeExprBug.bpl15
1 files changed, 15 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; }|;
+{
+}