aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/bool-neq0.c
blob: d6ad7aec3d93c01fbc31ec0ceeb7b1c3162a1e2f (plain)
1
2
3
4
5
6
7
8
9
10
11
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\\.
 */