2 // RUN: %llvmgcc -c %s -o %t && lli --force-interpreter=1 %t
6 typedef double vector[NDIM];
7 typedef struct bnode* bodyptr;
8 // { i16, double, [3 x double], i32, i32, [3 x double], [3 x double], [3 x
9 // double], double, \2 *, \2 * }
24 #define Type(x) ((x)->type)
25 #define Mass(x) ((x)->mass)
26 #define Pos(x) ((x)->pos)
27 #define Proc(x) ((x)->proc)
28 #define New_Proc(x) ((x)->new_proc)
29 #define Vel(x) ((x)->vel)
30 #define Acc(x) ((x)->acc)
31 #define New_Acc(x) ((x)->new_acc)
32 #define Phi(x) ((x)->phi)
33 #define Next(x) ((x)->next)
34 #define Proc_Next(x) ((x)->proc_next)
36 bodyptr ubody_alloc(int p)
39 tmp = (bodyptr)malloc(sizeof(body));
43 Proc_Next(tmp) = NULL;
48 int main(int argc, char** argv) {
49 bodyptr b = ubody_alloc(17);