]> matita.cs.unibo.it Git - pkg-cerco/acc.git/blob - tests/GCCTestSuite/pr15784-4.c
Imported Upstream version 0.2
[pkg-cerco/acc.git] / tests / GCCTestSuite / pr15784-4.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3 int a (int x) {
4         return ~x + 1; /* -x */
5 }
6
7 int b (int x) {
8         return -x -1; /* ~x */
9 }
10
11 /* { dg-final { scan-tree-dump "~x;" "optimized" } } */
12 /* { dg-final { scan-tree-dump "-x;" "optimized" } } */
13 /* { dg-final { cleanup-tree-dump "optimized" } } */