aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/bool-ne0.c
blob: b8206f6c791e63bed2021961a780cce96591842c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
int bne0(int a) { return a != 0; }
int bnoteq0(int a) { return !(a == 0); }
int bnotnot(int a) { return !(!a); }

/*
 * check-name: bool-ne0
 * check-command: test-linearize -Wno-decl $file
 * check-output-ignore
 *
 * check-output-excludes: seteq\\.
 * check-output-contains: setne\\.
 */