]> git.ozlabs.org Git - ccan/blobdiff - ccan/structeq/test/compile_fail-different.c
ccan/structeq: make it safe when there's padding.
[ccan] / ccan / structeq / test / compile_fail-different.c
index 9a08503fbb1fb4a947f63efb5f804ab03124ec26..f09a4454ebec9514de0ff63349e4ede2f19851ee 100644 (file)
@@ -8,6 +8,8 @@ struct mydata2 {
        int start, end;
 };
 
+STRUCTEQ_DEF(mydata1, 0, start, end);
+
 int main(void)
 {
        struct mydata1 a = { 0, 100 };
@@ -18,5 +20,5 @@ int main(void)
 #endif
                b = { 0, 100 };
 
-       return structeq(&a, &b);
+       return mydata1_eq(&a, &b);
 }