write arrays with brackets in tests

The tests spelled out (¤ ...), what [...] reads into, which nobody
writes. The reader's own tests keep it: there it is the point.
This commit is contained in:
2026-10-09 16:32:36 +03:00
parent 08853d2c77
commit 52228e6fc6
8 changed files with 55 additions and 55 deletions

View File

@@ -62,10 +62,10 @@
(printf "increment: %d\n" inc)
;; an array operand decays, so this is a pointer and not an array
(var xs (¤ int 4) #(1 2 3 4))
(var xs [int 4] #(1 2 3 4))
(var p _ (+ xs 1))
(var q _ (+ 1 xs))
(var names (¤ (* const char) 2) #("hi" "there"))
(var names [(* const char) 2] #("hi" "there"))
(var np _ (+ names 1))
(printf "decayed: %d %d %s\n" (* p) (* q) (* np))