repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr15784-4.c
blob
64ee719eb59d01d3d7b23a62db62d36984e197df
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_..D.;" "optimized" } } */
12
/* { dg-final { scan-tree-dump "-x_..D.;" "optimized" } } */