infix
A JIT-Powered FFI Library for C
Loading...
Searching...
No Matches
005_layouts.c File Reference

Tests the correctness of the ABI-aware layout calculation for aggregates. More...

#include "common/double_tap.h"
#include <infix/infix.h>
#include <stddef.h>
Include dependency graph for 005_layouts.c:

Classes

struct  test_struct_padding
 
struct  test_struct_no_padding
 
struct  test_struct_nested
 
struct  test_struct_packed
 
union  test_union
 

Macros

#define DBLTAP_IMPLEMENTATION
 

Functions

 subtest ("Struct with standard padding")
 
 subtest ("Struct with no padding")
 
 subtest ("Nested struct")
 
 subtest ("Packed struct (pack 1)")
 
 subtest ("Union layout")
 
 infix_arena_destroy (arena)
 

Variables

 TEST
 
infix_arena_tarena = infix_arena_create(4096)
 

Detailed Description

Tests the correctness of the ABI-aware layout calculation for aggregates.

Copyright (c) 2025 Sanko Robinson

This source code is dual-licensed under the Artistic License 2.0 or the MIT License. You may choose to use this code under the terms of either license.

SPDX-License-Identifier: (Artistic-2.0 OR MIT)

The documentation blocks within this file are licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).

SPDX-License-Identifier: CC-BY-4.0

Macro Definition Documentation

◆ DBLTAP_IMPLEMENTATION

#define DBLTAP_IMPLEMENTATION

Function Documentation

◆ infix_arena_destroy()

infix_arena_destroy ( arena  )

◆ subtest() [1/5]

subtest ( "Nested struct"  )

◆ subtest() [2/5]

subtest ( "Packed struct (pack 1)"  )

◆ subtest() [3/5]

subtest ( "Struct with no padding"  )

◆ subtest() [4/5]

subtest ( "Struct with standard padding"  )

◆ subtest() [5/5]

subtest ( "Union layout"  )

Variable Documentation

◆ arena

◆ TEST

TEST
Initial value:
{
plan(5)
#define plan(count)
Definition double_tap.h:132