feat: add selfhost-loop determinism check, golden tests, improve sema diagnostics

- Makefile: new targets `test-golden` and `selfhost-loop`
  - selfhost-loop verifies C codegen determinism (2-pass bootstrap)
  - test-golden compares C output against expected.c golden files
  - Updated clean-all to clean new build dirs
- tests/golden/hello/: first golden test (hello world)
- src/sema.bux:
  - Fix: import stubs only registered if symbol doesn't already exist
  - Improve: error message now includes identifier name
This commit is contained in:
2026-06-07 15:47:48 +03:00
parent 3b4456f01f
commit 1f0baefa5a
5 changed files with 3006 additions and 5 deletions
File diff suppressed because it is too large Load Diff