aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/simplify-not-neg.c
blob: 3fd8400d7bd47f051c37ab800c8bf7b1c2cc0e69 (plain)
1
2
3
4
5
6
7
8
9
int foo(int x) { return ~(-x) == (x - 1); }

/*
 * check-name: simplify-not-neg
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-ignore
 * check-output-contains: ret\\..*\\$1
 */