aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/mem2reg/init-local-array.c
blob: 639a74f100d946dbe3831434e85ad48decac0ee0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
static int array(void)
{
	int a[2];

	a[1] = 1;
	a[0] = 0;
	return a[1];
}

static int sarray(void)
{
	struct {
		int a[2];
	} s;

	s.a[1] = 1;
	s.a[0] = 0;
	return s.a[1];
}

/*
 * check-name: init local array
 * check-command: test-linearize $file
 * check-output-ignore
 * check-output-excludes: load
 * check-output-excludes: store
 * check-output-pattern(2): ret.32 *\\$1
 */