Added subject static edge case --- not functional

This commit is contained in:
York Jasper Niebuhr 2026-04-05 18:15:06 +02:00
parent 68f4ecd6ed
commit 41d504cccb
2 changed files with 3 additions and 1 deletions

View File

@ -13,7 +13,7 @@ struct task_struct global = { .pid = 42, .comm = "main_global", .arrfun = {
{ .a = 9, .b = 10, .c = 11, .d = 12.0 }, { .a = 9, .b = 10, .c = 11, .d = 12.0 },
{ .a = 13, .b = 14, .c = 15, .d = 16.0 }, { .a = 13, .b = 14, .c = 15, .d = 16.0 },
{ .a = 17, .b = 18, .c = 19, .d = 20.0 } { .a = 17, .b = 18, .c = 19, .d = 20.0 }
} }; }, .tasks = LIST_HEAD_SELF(global.tasks) };
static void print_layout() { static void print_layout() {
// TODO -> Make builtin __spslr_initial_offsetof(type, field) that is not patched // TODO -> Make builtin __spslr_initial_offsetof(type, field) that is not patched

View File

@ -43,6 +43,8 @@ static inline void list_add_tail(struct list_head *new, struct list_head *head)
#define list_for_each(pos, head) \ #define list_for_each(pos, head) \
for (pos = (head)->next; pos != (head); pos = pos->next) for (pos = (head)->next; pos != (head); pos = pos->next)
#define LIST_HEAD_SELF(name) { .next = &(name), .prev = &(name)}
struct ArrayFun { struct ArrayFun {
int a, b, c; int a, b, c;
double d; double d;