diff options
| -rw-r--r-- | validation/optim/bool-neq0.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/validation/optim/bool-neq0.c b/validation/optim/bool-neq0.c new file mode 100644 index 00000000..d6ad7aec --- /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\\. + */ |
