aboutsummaryrefslogtreecommitdiff
path: root/tests/programs/quarantine.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/programs/quarantine.zc')
-rw-r--r--tests/programs/quarantine.zc6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/programs/quarantine.zc b/tests/programs/quarantine.zc
index 061c4da..5697400 100644
--- a/tests/programs/quarantine.zc
+++ b/tests/programs/quarantine.zc
@@ -3,8 +3,10 @@ include rt;
// free quarantines the block. a stale alias still reads it, and freeing
// through the alias does nothing because the header already says free.
-// unchecked so the analyzer doesn't reject the use after free.
-unchecked fn main() {
+// unchecked so the analyzer doesn't reject the use after free, and unbounded
+// because a freed block has length 0 (a checked stale index traps, see
+// tests/conformance/8-runtime/stale_index_after_free_traps.zc).
+unchecked unbounded fn main() {
let p = rt.new(4), q, r, i = 0, t, bad = 0;
p[0] = 111; p[1] = 222; p[2] = 333; p[3] = 444;
q = p;