test(asm): round-trip example — asm calls back into an sx function

Adds examples/1655-platform-asm-callback-into-sx.sx: a global-asm
trampoline (_caller) that `bl _cb` back into an `export`ed sx function.
Demonstrates the sx → asm → sx round trip and that `export` (external
linkage + stable C symbol + C ABI) is what makes the callback symbol
resolvable — `callconv(.c)` alone leaves it internal and it DCE's away.
Runs under the JIT on aarch64-macos (→ 42); ir-only elsewhere. Locks
current behavior; no compiler change.
This commit is contained in:
agra
2026-06-16 07:55:05 +03:00
parent e7eeecc0f3
commit 1346a2d020
6 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1 @@