aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/canonical-arg.c
blob: a8ecc9bd0083c84a5920f647c38a11d1324f1b76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
int def(void);

int canon_arg_arg(int a, int b)
{
	return (a + b) == (b + a);
}

int canon_arg_reg(int a)
{
	int b = def();
	return (a + b) == (b + a);
}

/*
 * check-name: canonical-arg
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-ignore
 * check-output-returns: 1
 */