1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/* { 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" } } */