samba-tool: Fix enum values in dns.py
[Samba.git] / lib / ccan / str / test / compile_fail-isspace.c
blobbfee1f89f166614b603b9aec5c2315ad430a3af0
1 #define CCAN_STR_DEBUG 1
2 #include <ccan/str/str.h>
4 int main(int argc, char *argv[])
6 #ifdef FAIL
7 #if !HAVE_BUILTIN_TYPES_COMPATIBLE_P || !HAVE_TYPEOF
8 #error We need typeof to check isspace.
9 #endif
10 char
11 #else
12 unsigned char
13 #endif
14 c = argv[0][0];
16 #ifdef FAIL
17 /* Fake fail on unsigned char platforms. */
18 BUILD_ASSERT((char)255 < 0);
19 #endif
21 return isspace(c);