summaryrefslogtreecommitdiffstats
path: root/ccan/check_type/test/compile_fail-check_types_match.c
diff options
context:
space:
mode:
Diffstat (limited to 'ccan/check_type/test/compile_fail-check_types_match.c')
-rw-r--r--ccan/check_type/test/compile_fail-check_types_match.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ccan/check_type/test/compile_fail-check_types_match.c b/ccan/check_type/test/compile_fail-check_types_match.c
new file mode 100644
index 00000000..cbd6e9bc
--- /dev/null
+++ b/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;
+}
OpenPOWER on IntegriCloud