aboutsummaryrefslogtreecommitdiff
path: root/tests/programs
diff options
context:
space:
mode:
authorGravatar zinc <zinc@downsta.ir> 2026-10-15 02:40:33 +0330
committerGravatar zinc <zinc@downsta.ir> 2026-10-15 02:40:33 +0330
commit5cc95ef2f5e83ae851b938ccf3a10e640fe7a3d7 (patch)
tree340714bee0b60a9b028924794573409b8e8b439b /tests/programs
parentmerge work/dtor: destructors (drop on any heap value, heap(), struct drop, co... (diff)
parentcompiler: a //:lines marker starts a new file, so unbounded; and unchecked; o... (diff)
merge work/triage: zc0typed.zc without .u on a typed parameter; a //:lines marker ends unbounded;/unchecked; so self-hosted run-only images bounds-check the program again
Diffstat (limited to 'tests/programs')
-rw-r--r--tests/programs/zc0typed.zc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/programs/zc0typed.zc b/tests/programs/zc0typed.zc
index 81209bf..48488d5 100644
--- a/tests/programs/zc0typed.zc
+++ b/tests/programs/zc0typed.zc
@@ -11,7 +11,7 @@ const int LIMIT = 10;
int add(int a, int b) { return a + b; }
.u grow(word[?] v, int n) { return v; }
bool keep(int.d x, .m y) { return x != y; }
-int apply(int(int) f, int* p, vec<vec<int>>*.u q) { return f(*p); }
+int apply(int(int) f, int* p, vec<vec<int>>* q) { return f(*p); }
int sq(int x) { return x * x; }
fn start() {