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, -3, start, end);
18 STRUCTEQ_DEF(mydata2, -4, start, end);
24 /* This is how many tests you plan to run */
29 ok1(mydata_eq(&a, &a));
32 ok1(mydata_eq(&a, &b));
35 ok1(!mydata_eq(&a, &b));
37 /* This exits depending on whether all tests passed */