aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/simplify-neg-add-cte.c
blob: a02c474fa25abb6e2e2ec6fbf9d1c675aa4a3ad0 (plain)
1
2
3
4
5
6
7
8
9
10
11
#define C 3

int foo(int x) { return -(x + C) == (-3 - x); }

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