boot2

Playing with the boostrap
git clone https://git.ryansepassi.com/git/boot2.git
Log | Files | Refs | README

commit 4e861efba1981b1b0be51750f604825520dceff1
parent f56b58ee2704af5c3ce44b5734fa9f05cb371054
Author: Ryan Sepassi <rsepassi@gmail.com>
Date:   Sun, 26 Apr 2026 22:25:06 -0700

cc tests: for (int i = 0; cond; step) fixture (§F.2)

Locks in parse-for-stmt's existing decl-in-init branch (stmt-starts-decl?
already handles this). No cg or parse changes required.

Diffstat:
Atests/cc-parse/64-for-decl.c | 6++++++
Atests/cc-parse/64-for-decl.expected-exit | 1+
2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/tests/cc-parse/64-for-decl.c b/tests/cc-parse/64-for-decl.c @@ -0,0 +1,6 @@ +int main(void) { + int s; + s = 0; + for (int i = 1; i < 5; i = i + 1) s = s + i; + return s; /* 1 + 2 + 3 + 4 = 10 */ +} diff --git a/tests/cc-parse/64-for-decl.expected-exit b/tests/cc-parse/64-for-decl.expected-exit @@ -0,0 +1 @@ +10