aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/mem2reg/init-local.c
blob: d51c9247a5a3929abd9cdf3540f7dcdd6ed6a1f7 (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
int ssimple(void)
{
	struct {
		int a;
	} s;

	s.a = 1;
	return s.a;
}

double sdouble(void)
{
	struct {
		double a;
	} s;

	s.a = 1.23;
	return s.a;
}

/*
 * check-name: init-local
 * check-command: test-linearize -Wno-decl -fdump-ir=mem2reg $file
 * check-output-ignore
 * check-output-excludes: load\\.
 * check-output-excludes: store\\.
 */