diff options
Diffstat (limited to 'roms/skiboot/ccan/build_assert/test/compile_fail-expr.c')
-rw-r--r-- | roms/skiboot/ccan/build_assert/test/compile_fail-expr.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/roms/skiboot/ccan/build_assert/test/compile_fail-expr.c b/roms/skiboot/ccan/build_assert/test/compile_fail-expr.c new file mode 100644 index 000000000..109215b8a --- /dev/null +++ b/roms/skiboot/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 +} |