summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr20130-1.c
blob: 9763725602cfe2d66b2883f27d75f952a4b123da (plain)
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" } } */