summaryrefslogtreecommitdiff
path: root/ccan/str/test/compile_fail-strchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'ccan/str/test/compile_fail-strchr.c')
-rw-r--r--ccan/str/test/compile_fail-strchr.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/ccan/str/test/compile_fail-strchr.c b/ccan/str/test/compile_fail-strchr.c
deleted file mode 100644
index bdaf034..0000000
--- a/ccan/str/test/compile_fail-strchr.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#define CCAN_STR_DEBUG 1
-#include <ccan/str/str.h>
-
-int main(void)
-{
-#ifdef FAIL
-#if !HAVE_TYPEOF
- #error We need typeof to check strstr.
-#endif
-#else
- const
-#endif
- char *ret;
- const char *str = "hello";
-
- ret = strchr(str, 'l');
- return ret ? 0 : 1;
-}