diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-22 13:45:36 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-22 13:45:36 +0000 |
| commit | 3a6eb921b50e191468d29c233718657f9f85d68e (patch) | |
| tree | ebf411667c1a4360f6e78e0ac971f9df924511d1 /tests/i/extern-c-struct-value/case.json | |
| parent | 06538905915b15bde6364459929fe89cf0b8de5c (diff) | |
feat(codegen): pass C-struct records by value
EXTERN parameters may now be C-struct records by value. clang's
arrangement decides the passing: coerced through memory, flattened
into elements, or indirect as byval or a pointer to a copy. Returning a
record by value stays rejected for now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/i/extern-c-struct-value/case.json')
| -rw-r--r-- | tests/i/extern-c-struct-value/case.json | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/i/extern-c-struct-value/case.json b/tests/i/extern-c-struct-value/case.json new file mode 100644 index 0000000..1ce5970 --- /dev/null +++ b/tests/i/extern-c-struct-value/case.json @@ -0,0 +1,5 @@ +{ + "objects": [ + {"source": "lib.c", "output": "lib.o"} + ] +} |
