bd52d17906
too large to list, but see: http://gcc.gnu.org/gcc-3.4/changes.html http://gcc.gnu.org/gcc-4.0/changes.html http://gcc.gnu.org/gcc-4.1/changes.html for the details.
16 lines
284 B
C
16 lines
284 B
C
/* { dg-do compile } */
|
|
/* { dg-options "-fdump-tree-gimple" } */
|
|
int z (int a) {
|
|
return a * -1;
|
|
}
|
|
|
|
int x (int a) {
|
|
return -1 * a;
|
|
}
|
|
|
|
int y (int a) {
|
|
return -(-1 * -a);
|
|
}
|
|
/* { dg-final { scan-tree-dump-times "-a" 3 "gimple" } } */
|
|
/* { dg-final { cleanup-tree-dump "gimple" } } */
|