aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/mem2reg/init-local32.c
blob: 9a65c20583ec504a5a38ac1e47798cbd1683ac92 (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-local32
 * check-command: test-linearize -Wno-decl -m32 -fdump-ir=mem2reg $file
 * check-output-ignore
 * check-output-excludes: load\\.
 * check-output-excludes: store\\.
 */