aboutsummaryrefslogtreecommitdiff
path: root/tests/programs/o3call.zc
diff options
context:
space:
mode:
authorGravatar zinc <zinc@downsta.ir> 2026-10-14 15:58:58 +0330
committerGravatar zinc <zinc@downsta.ir> 2026-10-14 15:58:58 +0330
commitd55b5fdf92a674a6495878f97a09e95bafdcba3f (patch)
treee811149b65640a3e253e6ebdce41affddb53ac37 /tests/programs/o3call.zc
parentmerge line tables (diff)
bounds checking: port agent/bounds-checking onto main 0879d0a; unbounded main in o3call, o3 tests expect no check, boundsrules, bounds_fixed, bounds_heap and zc0unbounded tests
Diffstat (limited to 'tests/programs/o3call.zc')
-rw-r--r--tests/programs/o3call.zc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/programs/o3call.zc b/tests/programs/o3call.zc
index d2292ad..3ad977b 100644
--- a/tests/programs/o3call.zc
+++ b/tests/programs/o3call.zc
@@ -19,7 +19,7 @@ unchecked o3 int nest(int n) {
if (n == 0) return 0;
return n + nest(n - 1);
}
-unchecked fn main() {
+unchecked unbounded fn main() { // reads p[-1], the type word, on purpose
node* n = leaf(4);
int* p = n;
rt.put_n(p[-1] < 0); rt.put_c(' ');