]> git.ozlabs.org Git - ccan/blob - ccan/structeq/test/compile_fail-different.c
base64: fix for unsigned chars (e.g. ARM).
[ccan] / ccan / structeq / test / compile_fail-different.c
1 #include <ccan/structeq/structeq.h>
2
3 struct mydata1 {
4         int start, end;
5 };
6
7 struct mydata2 {
8         int start, end;
9 };
10
11 STRUCTEQ_DEF(mydata1, 0, start, end);
12
13 int main(void)
14 {
15         struct mydata1 a = { 0, 100 };
16 #ifdef FAIL
17         struct mydata2
18 #else
19         struct mydata1
20 #endif
21                 b = { 0, 100 };
22
23         return mydata1_eq(&a, &b);
24 }