2 // RUN: %llvmgcc -S %s -o - | grep datalayout | \
3 // RUN: not grep {"\[Ee\]-p:\[36\]\[24\]:\[36\]\[24\]"}
8 typedef double vector[NDIM];
9 typedef struct bnode* bodyptr;
10 // { i16, double, [3 x double], i32, i32, [3 x double], [3 x double], [3 x
11 // double], double, \2 *, \2 * }
26 #define Type(x) ((x)->type)
27 #define Mass(x) ((x)->mass)
28 #define Pos(x) ((x)->pos)
29 #define Proc(x) ((x)->proc)
30 #define New_Proc(x) ((x)->new_proc)
31 #define Vel(x) ((x)->vel)
32 #define Acc(x) ((x)->acc)
33 #define New_Acc(x) ((x)->new_acc)
34 #define Phi(x) ((x)->phi)
35 #define Next(x) ((x)->next)
36 #define Proc_Next(x) ((x)->proc_next)
38 bodyptr ubody_alloc(int p)
41 tmp = (bodyptr)malloc(sizeof(body));
45 Proc_Next(tmp) = NULL;
50 int main(int argc, char** argv) {
51 bodyptr b = ubody_alloc(17);