aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/select-constant-cond.c
blob: a9337e2ceaeec482a7d478eac8d1902278b9832f (plain)
1
2
3
4
5
6
7
8
9
10
int t(int p, int a, int b) { return ((p == p) ? a : b) == a; }
int f(int p, int a, int b) { return ((p != p) ? a : b) == b; }

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