]> git.ozlabs.org Git - ccan/blobdiff - ccan/hashtable/test/compile_fail-traverse-arg1.c
hashtable: replaced by htable.
[ccan] / ccan / hashtable / test / compile_fail-traverse-arg1.c
diff --git a/ccan/hashtable/test/compile_fail-traverse-arg1.c b/ccan/hashtable/test/compile_fail-traverse-arg1.c
deleted file mode 100644 (file)
index 470d425..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-#include <ccan/hashtable/hashtable.h>
-#include <ccan/hashtable/hashtable.c>
-#include <stdlib.h>
-
-struct foo {
-       int i;
-};
-
-struct bar {
-       int i;
-};
-
-static bool fn_bar_bar(
-#ifdef FAIL
-       struct bar *
-#else
-       struct foo *
-#endif
-                      foo,
-                      struct bar *bar)
-{
-       return true;
-}
-
-int main(void)
-{
-       struct hashtable *ht = NULL;
-       struct bar *bar = NULL;
-
-       hashtable_traverse(ht, struct foo, fn_bar_bar, bar);
-       return 0;
-}