|
infix
A JIT-Powered FFI Library for C
|
End-to-end JIT execution tests for Bitfields and Flexible Array Members. More...
#include "common/compat_c23.h"#include "common/double_tap.h"#include <infix/infix.h>#include <stddef.h>#include <stdint.h>#include <stdlib.h>#include <string.h>Classes | |
| struct | BitfieldStruct |
| struct | FlexStruct |
Macros | |
| #define | DBLTAP_IMPLEMENTATION |
Functions | |
| int | check_bitfields (BitfieldStruct bfs) |
| double | sum_flexible_array (FlexStruct *fs) |
| subtest ("Bitfields passed by value") | |
| subtest ("Flexible Array Member passed by pointer") | |
| infix_arena_destroy (arena) | |
Variables | |
| TEST | |
| infix_arena_t * | arena = infix_arena_create(4096) |
End-to-end JIT execution tests for Bitfields and Flexible Array Members.
This test validates that the JIT engine correctly handles the data marshaling for types with advanced layout rules.
| #define DBLTAP_IMPLEMENTATION |
| int check_bitfields | ( | BitfieldStruct | bfs | ) |
| infix_arena_destroy | ( | arena | ) |
| subtest | ( | "Bitfields passed by value" | ) |
| subtest | ( | "Flexible Array Member passed by pointer" | ) |
| double sum_flexible_array | ( | FlexStruct * | fs | ) |
| infix_arena_t* arena = infix_arena_create(4096) |