]> git.ozlabs.org Git - ccan/blob - ccan/structeq/test/compile_fail-different.c
structeq: new module.
[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 int main(void)
12 {
13         struct mydata1 a = { 0, 100 };
14 #ifdef FAIL
15         struct mydata2
16 #else
17         struct mydata1
18 #endif
19                 b = { 0, 100 };
20
21         return structeq(&a, &b);
22 }