1 union u { 2 int i; 3 float f; 4 }; 5 foo(void)6static int foo(void) 7 { 8 union u u = { .f = 0.123 }; 9 return u.i; 10 } 11 12 /* 13 * check-name: constant-union-float-to-int 14 * check description: must not infer the int value from the float 15 * check-command: test-linearize -fdump-ir $file 16 * 17 * check-output-ignore 18 * check-output-pattern(1): setfval\\. 19 * check-output-pattern(1): load\\. 20 */ 21