]> git.ozlabs.org Git - ccan/blobdiff - ccan/check_type/test/compile_fail-check_type_unsigned.c
Move modules to ccan/ tools to tools/
[ccan] / ccan / check_type / test / compile_fail-check_type_unsigned.c
diff --git a/ccan/check_type/test/compile_fail-check_type_unsigned.c b/ccan/check_type/test/compile_fail-check_type_unsigned.c
new file mode 100644 (file)
index 0000000..6b18acb
--- /dev/null
@@ -0,0 +1,14 @@
+#include "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;
+}