aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/backend/store-x2.c
blob: 5ccc9b43ac18a16dda90511bdeef989bb986b551 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
void foo(int *p, int a, int b);
void foo(int *p, int a, int b)
{
	int c = a + b;

	p[0] = c;
	p[1] = c;
}

/*
 * check-name: store-x2
 * check-command: sparsec -c $file -o tmp.o
 * check-description: Verify in output_op_store() that
 *	the first store doesn't mess anymore with the
 *	'target' and thus making the second store unusable.
 */