aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/mem2reg/init-local-union0.c
blob: 3a57e781f86da628dd1842b2b4f7ce549d2df8c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
double uintfloat(void)
{
	union {
		int a;
		double f;
	} s;

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

/*
 * check-name: init-local union 0
 * check-command: test-linearize -Wno-decl -fdump-ir=mem2reg $file
 * check-output-ignore
 * check-output-pattern(1): store\\.32
 * check-output-pattern(1): load\\.64
 */