aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/select-self-zero.c
blob: 73b3a3dc7e2917afc33cdbc94659b01f08b0d479 (plain)
1
2
3
4
5
6
7
8
9
10
int sel_self0x(int x) { return (x ? 0 : x) == 0; }
int sel_selfx0(int x) { return (x ? x : 0) == x; }

/*
 * check-name: select-self-zero
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-ignore
 * check-output-returns: 1
 */