]> git.ozlabs.org Git - ccan/blobdiff - ccan/alignof/test/run.c
endian: add constant versions.
[ccan] / ccan / alignof / test / run.c
index f76fb6691c73c9692cb1a767723b0f9a63e33a72..f36113d18fded305b364f98f5ddd94701be5b660 100644 (file)
@@ -1,7 +1,7 @@
+#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
@@ -37,8 +37,7 @@ int main(int argc, char *argv[])
        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);