+#include <ccan/alignof/alignof.h>
#include <stdlib.h>
#include <stddef.h>
-#include <tap/tap.h>
-#include "alignof/alignof.h"
+#include <ccan/tap/tap.h>
/* Alignment is remarkably difficult to test. The rules may be more
* complex than ALIGNOF() can know: eg. on i386 __alignof__(double) == 8, but
char c5;
};
-int main(int argc, char *argv[])
+int main(void)
{
struct lots_of_types lots_of_types, *lp = malloc(sizeof(*lp));
char c;
double d;
/* Make sure we use all the variables. */
- c = 0;
- c2 = c3 = c4 = c;
+ c = c2 = c3 = c4 = 0;
plan_tests(15);
ok1((unsigned long)&c % ALIGNOF(char) == 0);