1 union u { 2 char c; 3 float f; 4 }; 5 foo(void)6static int foo(void) 7 { 8 union u u = { .f = 0.123 }; 9 return u.c; 10 } 11 12 /* 13 * check-name: constant-union-size 14 * check description: the size of the initializer doesn't match 15 * check-command: test-linearize -fdump-ir $file 16 * 17 * check-output-ignore 18 * check-output-contains: load\\. 19 * check-output-excludes: ret\\..*\\$ 20 */ 21