Added subject static edge case --- not functional
This commit is contained in:
parent
68f4ecd6ed
commit
41d504cccb
@ -13,7 +13,7 @@ struct task_struct global = { .pid = 42, .comm = "main_global", .arrfun = {
|
||||
{ .a = 9, .b = 10, .c = 11, .d = 12.0 },
|
||||
{ .a = 13, .b = 14, .c = 15, .d = 16.0 },
|
||||
{ .a = 17, .b = 18, .c = 19, .d = 20.0 }
|
||||
} };
|
||||
}, .tasks = LIST_HEAD_SELF(global.tasks) };
|
||||
|
||||
static void print_layout() {
|
||||
// TODO -> Make builtin __spslr_initial_offsetof(type, field) that is not patched
|
||||
|
||||
@ -43,6 +43,8 @@ static inline void list_add_tail(struct list_head *new, struct list_head *head)
|
||||
#define list_for_each(pos, head) \
|
||||
for (pos = (head)->next; pos != (head); pos = pos->next)
|
||||
|
||||
#define LIST_HEAD_SELF(name) { .next = &(name), .prev = &(name)}
|
||||
|
||||
struct ArrayFun {
|
||||
int a, b, c;
|
||||
double d;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user