5f6ea36a8bd5631a8fdb63ee6bce80441b5e79cc
[ccan] / compile_fail-traverse-arg2.c
1 #include <ccan/hashtable/hashtable.h>
2 #include <ccan/hashtable/hashtable.c>
3 #include <stdlib.h>
4
5 struct foo {
6         int i;
7 };
8
9 struct bar {
10         int i;
11 };
12
13 static bool fn_foo_foo(struct foo *foo, 
14 #ifdef FAIL
15                        struct foo *
16 #else
17                        struct bar *
18 #endif
19                        bar)
20 {
21         return true;
22 }
23
24 int main(void)
25 {
26         struct hashtable *ht = NULL;
27         struct bar *bar = NULL;
28
29         hashtable_traverse(ht, struct foo, fn_foo_foo, bar);
30         return 0;
31 }