summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20031125-2.c
blob: 42b72480e6a3552e8e0578e0a5b896ef89f769e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
struct BlobSpan {
	int right;
};
/* This test makes sure we don't accidently cause a bad insertion to occur
   by choosing the wrong variable name so that we end up with a use not
   dominated by a def. */
void render_blob_line(struct BlobSpan blobdata) {
	int buf[4 * 8];
	int *data = buf;
	int i, n = 0;
	if (blobdata.right)
		n++;
	if (n)
		for (; i < 2 * n;)
			data[i] = 0;
	n *= 2;
	for (; n;) ;
}