summaryrefslogtreecommitdiff
path: root/ccan/str/test/compile_fail-iscntrl.c
diff options
context:
space:
mode:
Diffstat (limited to 'ccan/str/test/compile_fail-iscntrl.c')
-rw-r--r--ccan/str/test/compile_fail-iscntrl.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/ccan/str/test/compile_fail-iscntrl.c b/ccan/str/test/compile_fail-iscntrl.c
deleted file mode 100644
index f9abf1d..0000000
--- a/ccan/str/test/compile_fail-iscntrl.c
+++ /dev/null
@@ -1,23 +0,0 @@
-#define CCAN_STR_DEBUG 1
-#include <ccan/str/str.h>
-
-int main(int argc, char *argv[])
-{
- (void)argc;
-#ifdef FAIL
-#if !HAVE_BUILTIN_TYPES_COMPATIBLE_P || !HAVE_TYPEOF
-#error We need typeof to check iscntrl.
-#endif
- char
-#else
- unsigned char
-#endif
- c = argv[0][0];
-
-#ifdef FAIL
- /* Fake fail on unsigned char platforms. */
- BUILD_ASSERT((char)255 < 0);
-#endif
-
- return iscntrl(c);
-}