aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/bug-expand-union1.c
blob: 582a1f4f837e8d04db389da793ab1ee1224dff94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
union u {
	int i;
	float f;
};

static int foo(void)
{
	union u u = { .f = 0.123 };
	return u.i;
}

/*
 * check-name: bug-expand-union
 * check description: must not infer the value from the float
 * check-command: test-linearize $file
 * check-known-to-fail
 *
 * check-output-ignore
 * check-output-contains: load\\.
 */