aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/reassoc-op-op1.c
blob: 3d050c142249a2ca451222c1f5269e7887efde90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
int foo(int x, int *ptr)
{
	int t = x + 1;
	*ptr = t;
	return t + -1;
}

/*
 * check-name: reassoc-op-op1
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-ignore
 * check-output-pattern(1): add\\.
 */