xref: /illumos-gate/usr/src/tools/smatch/src/validation/optim/bool-int-bool.c (revision f37b3cbb6f67aaea5eec1c335bdc7bf432867d64)
1 _Bool beq0(_Bool a) { return (a == 0); }
2 _Bool beq1(_Bool a) { return (a == 1); }
3 _Bool bne0(_Bool a) { return (a != 0); }
4 _Bool bne1(_Bool a) { return (a != 1); }
5 
6 /*
7  * check-name: bool - int - bool constants
8  * check-command: test-linearize -Wno-decl $file
9  *
10  * check-output-ignore
11  * check-output-excludes: cast\\.
12  */
13