aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/mem2reg/init-global-array.c
blob: aea4135aefcc5077e7c78503a975d401db373688 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
struct {
	int a[2];
} s;

int sarray(void)
{
	s.a[1] = 1;
	return s.a[1];
}

/*
 * check-name: init global array
 * check-command: test-linearize -Wno-decl -fdump-ir=mem2reg $file
 * check-output-ignore
 * check-output-excludes: load\\.
 * check-output-pattern(1): store\\.
 */