diff options
Diffstat (limited to 'lib/ccan/check_type/test/compile_fail-check_type_unsigned.c')
-rw-r--r-- | lib/ccan/check_type/test/compile_fail-check_type_unsigned.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/ccan/check_type/test/compile_fail-check_type_unsigned.c b/lib/ccan/check_type/test/compile_fail-check_type_unsigned.c new file mode 100644 index 0000000000..574d4aeb24 --- /dev/null +++ b/lib/ccan/check_type/test/compile_fail-check_type_unsigned.c @@ -0,0 +1,14 @@ +#include <ccan/check_type/check_type.h> + +int main(int argc, char *argv[]) +{ +#ifdef FAIL +#if HAVE_TYPEOF + check_type(argc, unsigned int); +#else + /* This doesn't work without typeof, so just fail */ +#error "Fail without typeof" +#endif +#endif + return 0; +} |