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