xref: /illumos-gate/usr/src/tools/smatch/src/validation/optim/bool-neq0.c (revision f52943a93040563107b95bccb9db87d9971ef47d)
1 int bneq0(int a) { return a != 0; }
2 int bnoteq0(int a) { return !(a == 0); }
3 int bnotnot(int a) { return !(!a); }
4 
5 /*
6  * check-name: bool-neq0
7  * check-command: test-linearize -Wno-decl $file
8  * check-output-ignore
9  *
10  * check-output-excludes: seteq\\.
11  * check-output-contains: setne\\.
12  */
13