summaryrefslogtreecommitdiff
path: root/lib/ccan/check_type/test/compile_fail-check_type.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ccan/check_type/test/compile_fail-check_type.c')
-rw-r--r--lib/ccan/check_type/test/compile_fail-check_type.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/ccan/check_type/test/compile_fail-check_type.c b/lib/ccan/check_type/test/compile_fail-check_type.c
new file mode 100644
index 0000000000..fe7d6a235c
--- /dev/null
+++ b/lib/ccan/check_type/test/compile_fail-check_type.c
@@ -0,0 +1,9 @@
+#include <ccan/check_type/check_type.h>
+
+int main(int argc, char *argv[])
+{
+#ifdef FAIL
+ check_type(argc, char);
+#endif
+ return 0;
+}