diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-17 15:56:41 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-17 15:56:41 +0000 |
| commit | 567d1c932284bdd53c60937ff6f4ce4a63d104bf (patch) | |
| tree | 7d303ca345ba9de3398275830b22a25b37f81337 /tests/i/extern-c-object/notes.md | |
| parent | d953e2acec913027c49520f2db5aa6d8b55e9fba (diff) | |
test(extern): call functions from a user C object
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/i/extern-c-object/notes.md')
| -rw-r--r-- | tests/i/extern-c-object/notes.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/i/extern-c-object/notes.md b/tests/i/extern-c-object/notes.md new file mode 100644 index 0000000..51af8cb --- /dev/null +++ b/tests/i/extern-c-object/notes.md @@ -0,0 +1,7 @@ +# extern-c-object + +Human review: pending. Expected output was independently traced by AI, not captured from cpsc. + +Basis: compiler extension (EXTERN "C", INCLUDE_OBJ of a user object); C semantics. + +Trace: the harness compiles `lib.c` with the host C compiler (`objects` in `case.json`). add3(1,2,3)=6. scale(2.5,4)=10.0, printed like other C doubles as `10.000000`. name_length("cambridge")=9. next_call increments a static counter in the object, giving 1 then 2. say calls puts, which prints the string and a newline. |
