summaryrefslogtreecommitdiff
path: root/Test/test2/OldIllegal.bpl
diff options
context:
space:
mode:
Diffstat (limited to 'Test/test2/OldIllegal.bpl')
-rw-r--r--Test/test2/OldIllegal.bpl16
1 files changed, 16 insertions, 0 deletions
diff --git a/Test/test2/OldIllegal.bpl b/Test/test2/OldIllegal.bpl
new file mode 100644
index 00000000..342c5b19
--- /dev/null
+++ b/Test/test2/OldIllegal.bpl
@@ -0,0 +1,16 @@
+// Test old appearing in illegal locations
+
+var Global0: int;
+
+// Bad
+procedure OldInCode1()
+ requires old(Global0) == 0;
+{
+ start:
+ return;
+}
+
+// Bad
+axiom (forall o:ref :: old(o) == o);
+
+type ref;