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