summaryrefslogtreecommitdiff
path: root/Test/AbsHoudini/test8.bpl
diff options
context:
space:
mode:
Diffstat (limited to 'Test/AbsHoudini/test8.bpl')
-rw-r--r--Test/AbsHoudini/test8.bpl21
1 files changed, 21 insertions, 0 deletions
diff --git a/Test/AbsHoudini/test8.bpl b/Test/AbsHoudini/test8.bpl
new file mode 100644
index 00000000..12eab481
--- /dev/null
+++ b/Test/AbsHoudini/test8.bpl
@@ -0,0 +1,21 @@
+var g: int;
+
+procedure main()
+modifies g;
+{
+ g := 0;
+ call foo();
+ assert g == 1;
+}
+
+procedure {:inline 1} foo()
+modifies g;
+{
+ call bar();
+}
+
+procedure bar()
+modifies g;
+{
+ g := g + 1;
+} \ No newline at end of file