summaryrefslogtreecommitdiff
path: root/ccan/str/test/compile_fail-strrchr.c
diff options
context:
space:
mode:
authorWilliam Casarin <jb55@jb55.com>2018-07-09 22:28:25 -0700
committerWilliam Casarin <jb55@jb55.com>2018-07-09 22:31:48 -0700
commit9593fc545950782ed75f12f53238b07885559b2b (patch)
tree9c7c2f7cbb427c54e9184cb61eedce737a6cbc6f /ccan/str/test/compile_fail-strrchr.c
parentbd8c223756d2f912526ecef53bae0cc8e0c63442 (diff)
remove ccan for now
Diffstat (limited to 'ccan/str/test/compile_fail-strrchr.c')
-rw-r--r--ccan/str/test/compile_fail-strrchr.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/ccan/str/test/compile_fail-strrchr.c b/ccan/str/test/compile_fail-strrchr.c
deleted file mode 100644
index 57fba0e..0000000
--- a/ccan/str/test/compile_fail-strrchr.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 = strrchr(str, 'l');
- return ret ? 0 : 1;
-}