diff options
Diffstat (limited to 'validation/optim/simplify-neg-add-cte.c')
| -rw-r--r-- | validation/optim/simplify-neg-add-cte.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/validation/optim/simplify-neg-add-cte.c b/validation/optim/simplify-neg-add-cte.c new file mode 100644 index 00000000..4e425096 --- /dev/null +++ b/validation/optim/simplify-neg-add-cte.c @@ -0,0 +1,12 @@ +#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-known-to-fail + * + * check-output-ignore + * check-output-contains: ret\\..*\\$1 + */ |
