]> git.ozlabs.org Git - ccan/blob - ccan/check_type/test/compile_fail-check_type_unsigned.c
base64: fix for unsigned chars (e.g. ARM).
[ccan] / ccan / check_type / test / compile_fail-check_type_unsigned.c
1 #include <ccan/check_type/check_type.h>
2
3 int main(int argc, char *argv[])
4 {
5         (void)argc;
6         (void)argv;
7 #ifdef FAIL
8 #if HAVE_TYPEOF
9         check_type(argc, unsigned int);
10 #else
11         /* This doesn't work without typeof, so just fail */
12 #error "Fail without typeof"
13 #endif
14 #endif
15         return 0;
16 }