diff options
Diffstat (limited to 'lib/ccan/check_type/test/compile_fail-check_types_match.c')
-rw-r--r-- | lib/ccan/check_type/test/compile_fail-check_types_match.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/ccan/check_type/test/compile_fail-check_types_match.c b/lib/ccan/check_type/test/compile_fail-check_types_match.c new file mode 100644 index 0000000000..cbd6e9bc5b --- /dev/null +++ b/lib/ccan/check_type/test/compile_fail-check_types_match.c @@ -0,0 +1,10 @@ +#include <ccan/check_type/check_type.h> + +int main(int argc, char *argv[]) +{ + unsigned char x = argc; +#ifdef FAIL + check_types_match(argc, x); +#endif + return x; +} |