Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- validation/optim/bool-neq0.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 validation/optim/bool-neq0.c diff --git a/validation/optim/bool-neq0.c b/validation/optim/bool-neq0.c new file mode 100644 index 000000000..d6ad7aec3 --- /dev/null +++ b/validation/optim/bool-neq0.c @@ -0,0 +1,12 @@ +int bneq0(int a) { return a != 0; } +int bnoteq0(int a) { return !(a == 0); } +int bnotnot(int a) { return !(!a); } + +/* + * check-name: bool-neq0 + * check-command: test-linearize -Wno-decl $file + * check-output-ignore + * + * check-output-excludes: seteq\\. + * check-output-contains: setne\\. + */ -- 2.14.0 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html