1 #include <ccan/structeq/structeq.h>
2 #include <ccan/tap/tap.h>
4 /* In theory, this could be generated without padding, if alignof(int) were 0,
5 * and test would fail. Call me when that happens. */
11 STRUCTEQ_DEF(mydata, sizeof(int) - sizeof(char), start, end);
17 /* This is how many tests you plan to run */
22 ok1(mydata_eq(&a, &a));
25 ok1(mydata_eq(&a, &b));
28 ok1(!mydata_eq(&a, &b));
30 /* This exits depending on whether all tests passed */