1union u {
2	int i;
3	struct s {
4		int a;
5	} s;
6};
7
8int foo(void)
9{
10	struct s s = { 3 };
11	union u u = (union u)s;
12	return u.s.a;
13}
14
15/*
16 * check-name: union-cast
17 * check-command: test-linearize -Wno-decl -fdump-ir $file
18 * check-known-to-fail
19 *
20 * check-output-ignore
21 * check-output-excludes: load\\.
22 *
23 * check-error-start
24union-cast.c:11:22: warning: cast to non-scalar
25union-cast.c:11:22: warning: cast from non-scalar
26 * check-error-end
27 */
28