test: pin C function pointers into sx (PLAN-HTTPZ C2 — pre-existing)

Both halves of the C2 contract already work in JIT and AOT; these
examples pin them. 1635: libc qsort drives an sx callconv(.c)
comparator passed by name as a typed fn-pointer param. 1636: a real
pthread enters sx through a callconv(.c) entry, fabricates its own
Context (push Context with a local GPA), and runs default-conv sx code
that allocates through it — the re-entry contract std.thread (S6)
stands on. Also unblocks the sqlite callback APIs (hooks/UDFs) left
unbound by design in P5.1.
This commit is contained in:
agra
2026-06-12 22:14:14 +03:00
parent fe4f059a52
commit 4fa12853ed
8 changed files with 59 additions and 0 deletions

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@
qsort via sx comparator ok

View File

@@ -0,0 +1 @@
0

View File

@@ -0,0 +1 @@
pthread into sx ok: 42